Plug your numbers into the original equations and see if it works.

Given that your smaller number is 3 then your larger number is 7.

Since that is true and matches the question statement your answer is correct.

Your working confused me though, why didn't you just go from saying in the second line to and then and solve that quadratic?