On a trip, Powell travelled 40 mph for the first third of the distance and 50 mph for the remainder of the distance. If the whole trip took 4 hours and 20 minutes, how many miles did he travel?

I understand that in this question, we are searching for distance not rate or time.

I know that we need to use D = rt.

I need help setting up the equation for this distance question.