Calculating the time of a Trip

Two oceanfront homes are located 8 miles apart on a straight stretch of beach, each a distance of 1 mile from the paved road that parallels the ocean. Sally can jog 8 miles per hour along the paved road but only 3 miles per hour in the sand on the beach. Because of a river directly between the two houses, it is necessary to jog in the sand to the road, continue on the road and then jog directly back in the sand to get from one house to the other. The time T to get from one housee to the other as a function of the angle theta is given by:

T(theta) = 1 + (3/[3 sin(theta)] - 1/[4 tan (theta)], where

0 < theta < (pi/2).

Calculate the time T for tan (theta) = (1/4)