Use the substitution method.
In other words, simply replace y^2 in the first equation with (5-x)^2, based on the second equation .
You will get a single quadratic equation for x:
x^2 + (5-x)^2 = 25.
Simplify and solve for x.
Below is the plot to inspire you:
Plots x^2 + y^2 = 25 (red + green) and y = 5-x (blue)