The generic equation for a circle is (x - h)2 + (y - k)2 = r2 where (h, k) is the center of the circle. But if the circle is tangent to the y axis with a radius of 5, then the center must be somewhere along the x = 5 line. So, we can now write the equation as (x - 5)2 + (y - k)2 = 25. We just need to know what "k" is.
But we know that the circle goes through the point (10, 7) so we can plug that in as an (x, y). So: (10- 5)2 + (7 - k)2 = 25
Multiplying this out gives:
25 + (49 - 14k + k2) = 25
or k2 - 14k + 49 = 0
or (k - 7)(k - 7) = 0
or k = 7
So we can write the equation of the circle as (x - 5)2 + (y - 7)2 = 25