The "b" value is the value immediately to the left of the exponent. (It's not rocket science; it's pattern matching.) Note that the minus sign in g(x) is part of 'a', not part of 'b'.
From the top-down, the functions listed on the left have the b-values shown above.