The ladder leaning up against the wall forms a right triangle so you can use the Pythagorean to find the height, the missing side
a2 + b2 = c2
b = 3 ft the distance from ladder to wall on ground the base of your triangle
c = 12 ft the length of the ladder laid diagonally from a point on the wall to the ground and the longest side
a = height how far above the ground the ladder touches the wall
Rearranging the equation to solve for a2
a2 + b2 = c2
c2 - b2 = a2
SQRT(c2 - b2) = a
SQRT(122 - 32) = a
SQRT(144 - 9) = a
SQRT(135) = a
√9 *√15= a
3*√15 = a
11.6 = a
I hope you find this useful if you any questions send me a message.