well, there are several ways to solve this

I would first find the distance of the hypotenuse (or the sight line from ground marker to the top of chimney from the first sighting) then getting the hieght of the chimney is just using the sine function.

you can get the hypotenuse with the Law of Sines the angles you need are just from geometry theroms

one way of many ways of course