solve for -5g-6 for g=-2

you mean evaluate for g=-2

so, replace every h with -2 and you get

(-5)(-2)-6 = 10-6 = ?