6x+18=h(3x+9)

i already got the answer f -3 but can someone help me show my work and understand how to get rid of h