Let both the vehicles having X km/hr and Y km/hr speed.
If they go in same direction their relative speed will be X-Y (assuming X > Y)
So, speed = distance/time
X-Y = 90km / 9hr
X-Y = 10km/hr
If they go in opposite direction their speeds will be added.
X+Y = 90km / (9/7)hr
X+Y = 70km/hr
Solving these two equations, we will get
X = 40Km/hr and Y = 30Km/hr.
So answer is Option C.