❀Hm, I'm pretty sure you should solve for g. If so, then the first step we would need to do is add 24g to both sides:
gx+24g=x^2−24g+5x+24g
gx+24g=x^2+5x
❀Now you are going to factor out variable g:
g(x+24)=x^2+5x
❀Finally divide both sides by x+24:
[tex] \frac{g(x+24)}{x+24
} = \frac{x^2+5x
}{x+24
} [/tex]
❀Your answer is:
[tex]g= \frac{x^2+5x
}{x+24
} [/tex]
❀Good Luck❀