Observe the image attached. In this triangle ABD, AD is the height of the chimney. Let BC be the distance traveled by John towards the chimney. As we can observe in the image how the angle of elevation changes from [tex] 30^{\circ} [/tex] to [tex] 45^{\circ} [/tex].
In the triangle ABD,
[tex] \tan 30^{\circ} = \frac{AD}{BD} [/tex]
[tex] \tan 30^{\circ}=\frac{h}{50+CD} [/tex]
Let the distance CD be x meters.
[tex] \tan 30^{\circ}=\frac{h}{50+x} [/tex]
[tex] \frac{1}{\sqrt{3}} = \frac{h}{50+x} [/tex]
[tex] 50+x=h\sqrt{3} [/tex]
[tex] x=h\sqrt{3}-50 [/tex] (Equation 1)
In the triangle ACD,
[tex] \tan 45\dot{^{\circ}} = \frac{AD}{CD} [/tex]
[tex] 1=\frac{h}{x} [/tex]
[tex] h=x [/tex] (Equation 2)
Substituting the value of x from equation 2 in the equation 1,
[tex] h=h\sqrt{3}-50 [/tex]
[tex] 50=h\sqrt{3}-h [/tex]
[tex] h=\frac{50}{\sqrt{3}-1} [/tex]
h= 68.3 feet.