Work out the number of moles of each compound, then multiply by the molecular weight of the element.
30% of 20kg = 6000g
M (NH4)2SO4 = 132.13 g.mol-1
n = m/M = 6000/132.13 = 45.4 moles
---------------------------------------------
M (N) = 14.01 g.mol-1
m (N) = n.M = 45.4 x 14.01 = 636.2 g (of N in the bag due to ammonium sulfate)
work out the rest of the N mass then add together..