Let T6 = the time travelled at 60 mph and T5 = the time travelled at 50 mph.
Let D = the distance from town X to town Y
D/60 = T6 and D/50 = T5
(T5 + T6 -.5) * 55 = 2 * D
(D/50 + D/60 -.5)*55 = 2D
11D/10 + 11D/12 -27.5 = 2D
(66D + 55D -120D)/60 = 27.5
D/60=27.5
D=1650
You should verify that 1650 is correct by plugging it into the original equations!