A fishing boat moves from an initial position towards a pier for a distance of . An observer on the boat observes the top of a hill with an elevation angle of . The distance from the observer to the top of the hill at that time is . When arriving at the pier, the observation elevation angle changes to .
What is the distance from the base of the hill to the end of the pier?
Given: