A man 1.75 metres tall, standing at the foot of a tower sees the top of a hill 40 metres away at an elevation of 60°. On climbing to the top of the tower, he sees the top of the hill at an elevation of 50°. Compute the heights of the hill and the tower.