Divide18 by g. Then, subtract 7.

C. 18/g-7
Is this right?

Right.

Although it would be more precise if it were (18/g) - 7