Word problems relating ladder in trigonometry