Solution:
Let the distance of house from the theater be x miles.
Total travelling time

Then average speed

Terrence walks at a pace of 2 mi/h to the theater and back home at 40 mi/h.
So Average Speed
mi/hr
Both the average speed should be equal. So we can write

Hence the distance from home is 13.125 miles.