Richard P. answered 08/04/20
PhD in Physics with 10+ years tutoring experience in STEM subjects
One way to do this problem is to set up an x,y coordinate system in which the first road is along the x axis and the second road is in the first quadrant making the 40 deg angle with the x axis.
The the position of the first car is given by p1 = (38 t, 0) and the position of the second car is given by
p2 = ( 60 cos(40) t, 60 sin(40) t )
The distance formula then gives the distance between the cars as:
d = sqrt[ (38 t - 60 cos(40) t )^2 + ( 60 sin(40) t )^2 ]
Evaluating this for t = 1/2 gives: 19.69 miles