10 minutes = 1/6 hours.
Let the time it takes C to meet B be x,
50X+45X = 50 *(X+ 1/6)+40 *(X+ 1/6)
95X=(X+ 1/6)*(50+40)
95X=(X+ 1/6)*90
95X=90X+ 15
X=3
95 * X = 285KM km
A: The distance between a:AB and the city is 285 kilometers.