The circle equation is given by
where the center is at point (h,k) and the radius is r.
For circle O, we get
and for circle P, we have
Now, in order to obtain circle P from circle O, we need 2 translations and 1 expansion, that is,
we must translate the center of circle O at (-2,7) 14 units right and 8 units down and get the center of circle P at (12,-1).
These translatiions are given by
where (h,k)=(-2,7). By doing these tranlastions, we get
Finally, in order to get the circle P, we need to stretch the radius from r=5 to r=12, this transformation is given by
which give us circle P (blue circle in the last picture)