I am doing my schoolwork, and I can't figure out how to do this problem. I can't find anything related to it by searching it up, and the lesson name is just called 'Problem Solving', so I have no title to search it up with. How do you do this?
The way I have been doing it is I apply the Pythagorean Theorem, and I get this: $$(a-2)^2 + (a+1)^2 = (a+4)^2$$ I then turn all of them into quadratic equations: $$(a^2 - 4a + 4) + (a^2 + 2a + 2) = (a^2 + 16a + 16)$$ This is where I have a problem. In the lesson, the first one is just $a^2$. Because of this, they don't show me how I should combine all of the equations together. In nearly every problem, I end up getting the same value on both sides of the equation, like this: $$a^2 - 30 + 30 = 0$$
