Today, I was solving a problem which is described below.
Show that the equation of any circle passing through the points of intersection of the ellipse $(x + 2)^2 + 2y^2 = 18$ and the ellipse $9(x - 1)^2 + 16y^2= 25$ can be written in the form $x^2 - 2ax + y^2 = 5 - 4a$.
I tried to solve and found the intersection points of both ellipses which are $(2,-1)$ and $(2,1)$. But the problem is that how could I show the required result for the question?
I haven't solved any equation of circle with just two given point lying on the circle. Please help me solving it.

Note that center will lie on $x-$axis, therefore let the required equation of circle be of type
$(x-a)^2+y^2=r^2\implies x^2-2ax+a^2+y^2=r^2$
Now it passes through $(2,1) $ and $(2,-1)$, therefore these points will satisfy the equation above
$4-4a+a^2+1=r^2\implies5-4a+a^2=r^2$
Substitute $r^2$ back to get required result
Also note that $a$ here is $x-$ coordinate of center of circle.
Since you want to know that How to show that center will be at $x-$ axis, I will tell you two ways-
--> Take any chord of a circle. If the reflection of any point on it lies on the circle, then only that chord is diameter. Here I used converse of same thing. Since $(2,1)$ and $(2,-1)$ lie on a circle and are reflection of each other on $x-$ axis, therefore $x-$ axis should coincide with one of diameters of circle
--> Let center be $(\alpha,\beta)$ . Since two points lie on circle, therefore their distance from the center should be same which gives $(\alpha-2)^2+(\beta-1)^2=(\alpha-2)^2+(\beta+1)^2$ , solving which gives $\beta=0$ and thus center lies on $x-$ axis.