I should also add that since we're talking about squares, for most points you'll find two solutions.
With the example where x is 5, and y is sqrt(75), there is also a solution where x is 5 and y is negative sqrt(75).
With the example where x is 5, and y is sqrt(75), there is also a solution where x is 5 and y is negative sqrt(75).