Find the general solution to 10x -8y = 42
Okay, so do I find gcd(10, -8)? (this is clearly 2 but I need to use euclid's algorithm so I can work backwards to find the general solution)
If I do that I get
10 = -8(1) + 18 -8 = 18(1) - 26 18 = -26(1) + 44 -26 = 44
so this isn't going to work as every line gets further away rather than closer to a solution.
Should I just find gcd(10, 8)
10 = 8(1) + 2 8 = 4(2) + 0 gcd = 2 But then how do I accommodate for it being a negtive y?