Solving linear equations

here c constant is alwaz == g which is gcd(a,b) right???

@Muskan-Gupta-598128740703036,
c can be any number s.t c % gcd(a, b) == 0;