Recall the ideal gas law, PV = nRT. This rearranges to P = n (RT/V)
In a container with fixed volume and temperature, RT/V is a constant (lets call it C). Therefore, P = nC (i.e. the partial pressure of a gas is directly proportional to the number of moles of that gas).
Now, lets say that 1 mol of ammonia gas in your container gives a pressure of 25 atm. When the reaction is over, you have pressure of 43 atm, which would correspond to 1.72 moles of total gas molecules (ammonia + nitrogen + oxygen molecules). How much of the original 1 mol of ammonia dissociated? (hint: make an ICE table)