Solving for the height of a building