How would I go about solving this problem? I used the Pythagorean theorem but still got it wrong

Answer:
B. 20
Step-by-step explanation:
Using the Pythagorean Theorem, you have:
[tex]a^2 + b^2 = c^2\\24^2 + 32^2 = c^2\\576 + 1024 = c^2\\1600 = c^2\\c = 40[/tex]
So you know side AB is 40 inches long. It asks the length of the midpoint to point A, so you have to do 40/2 = 20 inches