for g=3 it would be like this 6 would multiplied by 3 which gives 18 then subtract 11 and it would give you 7
for g=-5 you multiply 6 by -5 which gives -30 and subtract -11 which gives -41 because negative numbers are added
and for g=8 you multiply 6 by 8 that gives 48 and subtract -11 which gives 37