Rewrite the equation as gx+a=y.
Subtract a from both sides of the equation.
Divide each term by x and simplify.
Divide each term in gx=y-a by x.
Cancel the common factor of x.
Cancel the common factor.
Divide g by 1.
Move the negative in front of the fraction.
Solve for g y=gx+a