An engineer sees that the angle of elevation to a vertical tower is 45 degrees. When he moves 40 feet closer to the tower on the same straight, level path, he sees that the angle of elevation becomes 55 degrees. How tall is the tower?

as always, draw a diagram. Note that if the tower's height is h, you have

h cot45° - h cot55° = 40

Now just solve for h.