The length of ladder between the ground and the support point is 8/sin(θ). The length of ladder above the support point is therefore 15 – 8/sin(θ), and the horizontal projection is y = (15 – 8/sin(θ))cos(θ).

The maximum occurs when , at which point .