I think you might have made a mistake in your answers. If we use Pythagorean Theorem of a^2 + b^2 = c^2, we can manipulate this to also be...
c^2 - a^2 = b^2 or
c^2 - b^2 = a^2
be sure you copied your answers correctly when comparing with the above answer.