Write an algorithm for solving the equations {3x-2y = - 27x-y = 18}?

Write an algorithm for solving the equations {3x-2y = - 27x-y = 18}?

The common method to solve binary linear equations is to substitute elimination with elimination or add and subtract elimination
This problem can be solved by adding, subtracting and eliminating elements
3x-2y=-2 ——①
7x-y=18——②
② * 2 - ① is: 11x = 38, the solution is: x = 38 / 11
Substituting x = 38 / 11 into formula 2, we get y = 68 / 11