If the solutions of the binary linear equations {ax + 2by = 4, x + y = 1} and {X-Y = 3, BX + (A-1) y = 3 are the same, the values of a and B are obtained

If the solutions of the binary linear equations {ax + 2by = 4, x + y = 1} and {X-Y = 3, BX + (A-1) y = 3 are the same, the values of a and B are obtained

x+y=1
x-y=3
The solution is x = 2, y = - 1
Substituting {ax + 2by = 4
bx+(a-1)y=3
The results show that {2a-2b = 4
2b-a+1=3
The solution is a = 6, B = 4