D = distance of Terrenceās house from the theater
vā = speed at which Terrence walk from home to theater = 2 mi/h
tā = time taken by Terrence to walk from home to theater = D/vā = D/2
vā = speed at which Terrence returns back to home = 40 mi/h
tā = time taken by Terrence to return back to home = D/vā = D/40
t' = time spent in watching the movie = 2 h 15 min = 2.25 h
t = total time = 3.5 h
we know that
t = tā + tā + t'
3.5 = (D/2) + (D/40) + 2.25
D = 2.4 miles