Let the height of the tower be H and the initial distance from point A to the foot of the tower be d. From point A, tan(30 degrees) = H / d, which gives the equation 1 divided by the square root of 3 equals H / d, so d equals H times the square root of 3. Point B is 20 meters closer to the tower, so the distance from point B to the foot is d minus 20. From point B, tan(60 degrees) = H / (d - 20), and since tan(60 degrees) equals the square root of 3, we write the square root of 3 equals H / (d - 20). Substituting d from the first equation gives the square root of 3 equals H / (H times the square root of 3 minus 20). Cross-multiplying yields 3 times H minus 20 times the square root of 3 equals H. Subtracting H from both sides gives 2H equals 20 times the square root of 3. Dividing by 2 gives the height of the tower H as 10 times the square root of 3 meters.