Solve[{a x + b y == 1, x - y == 2}, {x, y}]