29.6 kilograms of ammonia
First, lookup the atomic weights of nitrogen and hydrogen.
nitrogen = 14.0067
hydrogen = 1.00794
Now figure out how many moles of each element you have by dividing the mass of the element you have by the atomic weight of the element.
nitrogen = 32700 g / 14.0067 g/mol = 2334.597 moles
hydrogen = 5260 g / 1.00794 g/mol = 5218.565 moles
The formula for ammonia is NH3 which means for each mole of nitrogen, we need 3 moles of hydrogen. Or for every mole of hydrogen, we need 1/3 mole of nitrogen. So let's see what the limiting element is.
We have 2334.597 moles of nitrogen which would require 7003 moles of hydrogen. We don't have that much hydrogen, so hydrogen is the limiting factor.
We have 5218.565 moles of hydrogen which requires 1739.522 moles of nitrogen. We do have enough nitrogen to fully consume the hydrogen. So we can produce 1739.522 moles of ammonia.
The molar mass of ammonia is
1 * 14.0067 + 3 * 1.00794 = 17.03052 g/mole
And the total mass produced will be
1739.552 mole * 17.03052 g/mole = 29624.96 g
Since we only have 3 significant figures in our data, the result will be rounded to 29600 grams, or 29.6 kilograms.