9.0 moles of pure ammonia gas were injected into a 3.0 L flask and allowed to reach equilibrium according to the equation shown below. If the equilibrium mixture was analyzed and found to contain 3.0 moles of hydrogen gas, calculate the value of the equilibrium constant.

2NH3(g) <====> 2N2(g) + 3H2(g)