A theater group made appearances in two cities. The hotel charge before tax in the second city was $500 lower than in the first. The tax in the first city was
8.5%, and the tax in the second city was 7.5%. The total hotel tax paid for the two cities was $642.50. How much was the hotel charge in each city before tax?
First city: $
Second city: $