By definition, the following symbol meanas "not equal to":
An inequality relates two expressions. When you use the symbol shown above, you are indicating that the expressions are not equal.
In equations you use the "equal sign":
That indicates that the expresions related are equal; it indicates and equality.
In this case, the statement given in the exercise says that "g" (that represents the number of guests that coming for dinner) is not 8. So this indicates that "g" is not equal to 8.
Based on the above, you can write this situation as the following inequality:
The answer is: