Two cars are traveling along the same straight road. At time zero (ti=0) car A is at a distance 40.0 km from the origin and is traveling at a constant rate of 36.0 km/hr. At the time zero (ti=0) car B departs from the origin (di=0) at a constant 48.0 km/hr.
A: How long will it take in hours for car B to pass car A?

B: How far from the origin will the cars be when car B passes car A?

Thanks