The image I provided is a good diagram of the situation.
The keeper is 19 meters above the water.
He is looking down at a ship at a 10° angle from the horizon.
We want to find the distance between the base of the lighthouse and the ship.
The side we are trying to find is opposite the angle 10°. The lighthouse is adjacent to the angle 10°.
Therefore, we can use the tangent function (opposite over adjacent).
tan 10° = x/19
Multiply both sides by 19:
19 tan 10° = x
Solve using a calculator:
x = 3.350 meters
The ship is 3.350 meters from the lighthouse.