Explanation
Swapped coefficients
Look at the coefficients first. Two and three in one equation, three and two in the other: they're swapped.
That means add and subtract.
Swapped coefficients: 2x + 3y = 13, 3x + 2y = 12
Add
Add them: five x plus five y is twenty-five, so x plus y is five. Subtract them: y minus x is one.
Now it's easy: x is two, y is three.
Add: 5x + 5y = 25 → x + y = 5 · Subtract: y − x = 1
45x − 23y = 113, 23x − 45y = 91
It works for ugly numbers too. Add: sixty-eight x minus sixty-eight y is two hundred four, so x minus y is three.
Subtract: twenty-two x plus twenty-two y is twenty-two, so x plus y is one. x is two, y is minus one.
45x − 23y = 113, 23x − 45y = 91 → x − y = 3, x + y = 1 → x = 2, y = −1
12x + 78y = 12, 16x + 96y = 16
Anurupye: if the x-coefficients are in the same ratio as the constants, y must be zero. Twelve to sixteen, and twelve to sixteen.
So y is zero and x is one.
12x + 78y = 12, 16x + 96y = 16 → 12 : 16 = 12 : 16 → y = 0, x = 1
General
For any other pair, use the cross formula. For a x plus b y equals c, and d x plus e y equals f: the bottom is a e minus b d.
x is c e minus b f over that. y is a f minus c d over that.
General: x = (ce − bf) / (ae − bd), y = (af − cd) / (ae − bd)
Worked example
37x + 29y = 140, 29x + 37y = 124. Add: 66(x + y) = 264 → x + y = 4.
Subtract: 8(x − y) = 16 → x − y = 2. So x = 3, y = 1.