For A, there are 1 mol of N2 and 5 moles of H2 reactioning.
To state the prediction for the leftovers for A, we should find the limiting reactant.
Given the reaction, we know that for every 1 mol of N2 there's 3 moles of H2.
So, applying the stoichiometry of the reaction:

Now, we could conclude that:
We have 1 mol of N2, but we actually need 5/3 mol of N2 according to the reaction. So, N2 is the limiting reactant.
We have 5 mol of H2, but we actually need only 3 moles of H2 according to the reaction. Thus, H2 is the excess reactant.
Therefore, the leftovers for A, are 5-3 = 2 moles of H2.