The coefficient of the leading term tells you how "stretchy" a graph is. Since g(x)'s leading coefficient is 3, and f(x)'s leading coefficient is 9, and they're both , g is just 3 times f. Then g's constant term is -4, and f's constant term is 0, then g is just f but translated 4 down.