Hope this helps...
Use any TWO variables for each hotel in each city; I will use x & y
Ex. y = hotel charge in city 1 with tax rate of 10%, x = hotel charge in city 2 with tax rate of 4%
You need TWO equations relating x and y with the information given...
Knowing that difference between the two hotel charges is 1500, set your first equation;
x = y + 1500 OR x - y = 1500
Your 2nd equation will be based on the tax information given. The sum of the tax charges = $380
x(0.04) + y(0.10) = 380
Time to solve: x - y = 1500
0.04x + 0.10y = 480
Working with the TOP equation, modify the equation by factoring by a factor so when you add the equations together you eliminate ONE of the variables to solve for the other. Here I will use -0.04 to cancel out the x term.
-0.04(x - y) = 1500(-0.04) = -0.04x + 0.04y = -60
Add the equations...the x term cancels out
-0.04x + 0.04y = -60
0.04x + 0.10y = 480
0.14y = 420
y = 420/0.14
y = $3,000 = hotel charge in city 1 BEFORE taxes
then
x = y + 1500 = $4,500 = hotel charge in city 2 BEFORE taxes
CHECK by calculating the tax charges:
Hotel in city 1 = 0.10(y) = $300
Hotel in city 2 = 0.04(x) = $180