Where is the mistake? Finding an equation for the ellipse with foci $(1,2)$, $(3,4)$, and sum of distance to the foci equals to $5$. 
Find an equation for the ellipse with foci $(1,2)$, $(3,4)$, and sum of distance to the foci equals to $5$.

We consider the foci in the coordinate system $XY$ such that $X=x-2$ and $Y=y-1-x$, the coordinates of the foci in this system are $(-1,0)$ and $(1,0)$, furthermore $2a=5$, the equation of the ellipse in $XY$ is
\begin{equation}
\left( \frac{X}{2.5}\right)^2 + \left( \frac{Y}{\sqrt{5.25}} \right)^2 = 1
\end{equation}
and this can be expressed in $xy$ as
$$\left( \frac{x-2}{2.5} \right) + \left( \frac{y-1-x}{\sqrt{5.25}}\right) = 1$$
I have made the graph of the last equation and it is not the case that foci are $(1,2)$ and $(3,4)$, so, can anyone help me to see the mistake please?

You just need to write it like what it is, the sum of the distance to the foci is 5:
$$\sqrt{(x-1)^2+(y-2)^2} + \sqrt{(x-3)^2+(y-4)^2} = 5$$
