A man drove at the rate of 50 km/h while outside a cityand 30 km/h while within the city. If a trip 33 km took him 46 minutes, how much of the trip was outside the city?

distance outside city --- x

distance inside city ---- 33-x

time = distance/rate

x/50 + (33-x)/30 = 46/60

solve for x

(I suggest multiplying each of the 3 terms by 300)