From a point 120m from the foot of a building, the angles of elevation of the top and bottom of the flagpole are 49 degrees and 46 degrees respectively. Find the height of the flagpole.