The distance from point A to point B is 613.4 feet.
Given that the beacon-light of the lighthouse is 104 feet above the sea. Let the distance from point A to the base of the lighthouse be represented by x, so that:
Tan θ =

Tan 7 =

x =

= 847 feet
Also, let the distance from point B to the base of the lighthouse be represented by y, so that;
Tan θ =

Tan 24 =

y =

= 233.6 feet
Thus the distance between points A and B = 847 - 233.6
= 613.4 feet