g(x) = 6 - x h(x) = x³
h(-3) ---> place -3 in for x into the h(x) formula: h(-3) = (-3)³ = -27
hg(2) ---> h( g(2) )
first, calculate g(2): g(2) = 6 - 2 = 4
then, place this result into the h formula:
---> h( g(2) ) = h(4) = 4³ = 64
gh(2) ---> g( h(2) )
first, calculate h(2): h(2) = 2³ = 8
then, place this result into the g formula:
---> g( h(2) ) = g( 8 ) = 6 - 8 = 2
You need to work the functions from right to left: hg(x) = h( g(x) ) and gh(x) = g( h(x) )