A and B are two point on level ground, both due south of a flagpole.The angle of elevation of the top of the flagpole is 60° from A and 45° from B.

If A is 20m from the foot of the flagpole, find |AB|.

draw a diagram, and it should be clear that

20 tan60° = (20+|AB|) tan45°
20√3 = 20+|AB|
|AB| = 20(√3-1)