First calculate the mole of N2 in the vessel. If you know this you can also see on the equation how much hydrogen has to be obtained. On the other side you can see how much ammonia was decomposed to create the nitrogen and the hydrogen. This you put in the equation . For ammonia its (x - decomposed NH3)2.