Please find the attachment.
Let h be the height of the building.
We have been given that the line of sight between the ground camera and the top of the building is 45 feet, and the angle of the camera with respect to the ground is 50 degrees.
We can see that line of sight between the ground camera and the top of the building will be hypotenuse of our right triangle formed by the building and the ground camera.
We can see from our attachment that h is opposite side for 50 degree angle. So we will use sine to find our side length as sine equals to opposite/hypotenuse.
![h=45\cdot0.766044443119](https://img.qammunity.org/2019/formulas/mathematics/college/h9rbynvuhik0o8e18llbm43yjqflbr5ml3.png)
![h=34.471999940355\approx 34.5](https://img.qammunity.org/2019/formulas/mathematics/college/adlydbzggez6rldxum6mb7uyj3kiydnmi6.png)
Therefore, height of the building is 34.5 feet.