Solve for s. y=sx+g.
This is what the answer looks like:s = (y - g) รท x
y=sx+gy-g=sx(y-g)/x=ss = (y-g)/x