@magnifico,
In order to get two moles of NH3, you need three moles of H2 and one of N2. You have four moles of NH3, so how many moles of H2 and N2 were required to make that? Add that to what is still there and you will have the original concentrations of those two gases.