Let the distance travelled by Michael each way be `d` miles.
Time taken by Michael when he drove to his friend’s house at a rate of 40 mi/h =`d/40` hrs.
Time taken by him on his return journey = `d/45` hrs.
By the given condition:
`rArr d=(4*360)/17= 84.7058` miles.
Distance travelled each way = 84.7058 miles.
Hence total distance travelled =2*84.7058`~~` 169.4 miles.
Therefore, the distance traveled by Michael is 169.4 miles.