Derek and Sam are
feet
inches tall.
The basket ball goal is at
foot.
Derek angle of elevation is
.
Sam angle of elevation is
.
Consider the distance between Sam and Derek as
and the distance between Sam and the goal as
.
Draw a diagram using above information.
\
Find the distance between Sam and the goal.
\From the smaller right angle triangle.
\Trigonometric function :
.

Distance between Sam and the goal
inches.
Find the distance between Derek and Sam.
\From the larger right angle triangle.
\Trigonometric function :
.

Substitute
in the above equation.

The distance between Derek and Sam is
inches.
The distance between Derek and Sam is
inches.