I assume that's supposed to be $50^\circ,$ not just $50$. Let $x$ be the distance (in meters) from the closer viewing point to the castle wall, so that the distance to the further viewing point is $x+45$ meters. Use SOHCAHTOA on the two right triangles and solve the system of two equations in $x$ and $h$ for the variable $h$. (Don't estimate until the very end.)