Let d km be the distance between the cities.

The velocity of the car Vc = d/2 km/h

The velocity of the bicycle Vb = d/7 km/h.

Find the position of the bicycle when the starts and the distance between the car and the bicycle. Let it be d1. Now start counting the time. If they meet at a point x km from the starting point of the car, they take the same time to reach that point. So

x/Vc = (d1-x)/Vb.

Find x in terms of d, then find t.