Please check my workings to see if i'm correct, thanks!

Find the percentage of nitrogen by mass in Ammonium nitrate, NH4NO3.

(28/80)x 100% = 35%

Is my answer correct?

yes.