Consider these functions:

Two pairs of ellipses are labeled x and g of x, and x and h of x. The first pair x has 0 2 4 and 6 corresponds to 3 4 5 6 respectively of g of x. The second pair x has 0 1 4 and 9 corresponds to 0 1 2 3 respectively of h of x.

What is the value of x when g(h(x)) = 4?