The figure consists of five squares and two right-angled triangles. The areas of three of the squares are 5,8 and 32 , as shown. What is the area of the shaded square?
(A) 35
(B) 45
(C) 29
(D) 19
(E) 75

![](https://cdn.mathpix.com/cropped/2024_04_20_ac36362783317e0251fdg-021.jpg?height=580&width=382&top_left_y=214&top_left_x=1338)
The Pythagorean Theorem tells us that if a right-angled triangle has sides of length $a, b$ and $c$, with $c$ the hypotenuse, then $a^{2}+b^{2}=c^{2}$.

Since the area of a square of side length $a$ is $a^{2}$, the Pythagorean Theorem can be re-phrased to say that the sum of the areas of the squares that can be drawn on the two shorter sides equals the area of the square that can be drawn on the hypotenuse. (In the figure below, this says that $x+y=z$ where $x, y$ and $z$ are the areas of the squares, as shown.)

![](https://cdn.mathpix.com/cropped/2024_04_20_33a8a6559d675f59baa2g-040.jpg?height=482&width=420&top_left_y=518&top_left_x=907)

In the given diagram, this means that the area of the unmarked, unshaded square is $8+32=40$.

![](https://cdn.mathpix.com/cropped/2024_04_20_33a8a6559d675f59baa2g-040.jpg?height=585&width=382&top_left_y=1144&top_left_x=926)

This means that the area of the shaded square is $40+5=45$.

ANSWER: (B)