a man travelled a distance of 22km in one hour partly in a car at a speed of 30 km/hour and partly on a motorcycle at 18km/hour. find the distance travelled by him in the car

time in car ---- t hrs

time on motorcycle --- 1 - t hrs

30t + 18(1 - t) = 22

solve for t, sub into 30t to get the distance in km