Answer with explanation:
Total Distance traveled in 2.5 hours = 135 miles
Average speed for the total trip

Let time taken by person while going from his house to his friend house = t hours
Average Speed of person after leaving the friend's house. = 50 miles/hour
Let average speed of person while going from his house to his friend house =v miles/hour.

Also, Distance = Speed × Time
→135 = 58 × t +50 × (2.5 -t)
→135 = 58 t +125 - 50 t
→135 - 125 =8 t
→ 10 = 8 t

So, i traveled at a speed of 58 miles /hour, for 75 minutes ,from my house to my friend's House in the entire trip.