If your question is “Two towns A and B are 400 km apart. Prakash and Jagdish started their cars from towns A and B respectively at the same time towards at uniform speed towards each other where the speed of Prakash's car exceeded the speed of Jagdish car by 10km/hour. After 5 hours they were 10 km apart, find their respective speeds.” Then the answer is
Let the speed of Jagdish car be x km/hour.
∴ Speed of Prakash car be (x + 10) km/hour.
In 5 hours Jagdish and Prakash travelled 5x km and 5(x + 10) km respectively. Total distance travelled by them = (400 - 10) km = 390 km.
∴ 5x + 5(x + 10) = 390
⇒ 10x + 50 = 390
⇒ 10x = 340
⇒ x = 34
Speed of Jagdish car = 34 km/hour.
Speed of Prakash car = (34 + 10) km/hour = 44 km/hour.