Other tutors have covered the use of law of Sines/cosines. I want to show you that it is possible to calculate this from simple trigonometric logic.
Draw a triangle formed by the base of the tree (point A), the porch (point B) and the top of the tree (point C). Draw the angles in the triangle.
Given the tree is tilted at an angle 3º
Angle CAB, θ = (90-3º) = 87º
Angle CBA, φ = 31º (given)
Length AB = 96 ft (given)
Length AC = "h", actual height of the tree (to be estimated)
Drop a line segment perpendicular to the base AB from apex C of the triangle, meeting it at point D. Let
Length CD = p and AD = x
Now p is the common perpendicular shared between two right triangles ADC and BDC. From the triangles write the following expressions
tan θ = p/x
tan φ = p/(96-x)
Eliminate p and calculate x.
x = 2.927 ft
Now, from triangle ADC, calculate AC using the cosine function
Cos θ = x/h
h = 2.927/0.0523 = 55.97 ft.