A difference is the result of a subtraction.
... - ...The two terms that are being subtracted are q and 8. Since q comes first in the verbal expression, it should be on the left-hand side of the subtraction.
q - 8
Let's summarize.
&the difference of a number q and 8
& q - 8
Note that this is only one of many ways to algebraically express the given verbal expression.