If
and
, then you can replace
in either equation with the equivalent expression given by the other equation. In this case, you have

and you can solve for
.

Then
.
For the second system, you can write


Then substitute this into the second equation and you get


so that
