❀Hm, I'm pretty sure you should solve for g. If so, then the first step we would need to do is a
dd 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:

❀Your answer is:

❀Good Luck❀