The angles of elevation from the two ships equal their respective angles of depression from the lighthouse. The ship at 45° is nearer, and the ship at 30° is farther away.
Let the horizontal distance to the nearer ship be x m.
tan 45° = \frac{100}{\mathrm{x}} = 1
⇒ x = 100 m
Let the horizontal distance to the farther ship be y m.
tan 30° = \frac{100}{\mathrm{y}} = \frac{1}{\sqrt{3}}
⇒ y = 100√3 = 100 × 1.732 = 173.2 m
Both ships are on the same side and one is directly behind the other, so subtract the two distances.
⇒ Distance between the ships = 173.2 − 100 = 73.2 m.