No, that is not correct. Simply substitute into both equations and your will be different both times. You can do the same for your other three -terms and the same thing will happen.

To solve the problem, get rid of the ugly term in the middle;

.

Now things get interesting. Have you ever heard of the Euclidean algorithm?

(With respect to LaTeX, \pm gives you which is neater than .)