try putting the coefficients and answers into a matrix and Row reduce...
oh... sorry, just finished a semester in Linear Algebra :-)
but really... you have 2 equations that are equal to each other ad 2 unknowns... that is easy to solve just read the math book you have (I know, I know who reads a math book :-D )