1 mol of nicotine contains 28g nitrogen. This is because the molar mass of nitrogen is 14, so 2moles of nitrogen weigh 28 grams because moles = mass / molar mass
Since nicotine has 2 atoms of nitrogen per mol, 1 mol of nicotine contains 2 mol of nitrogen
Hope i helped!