The oxidation number of chromium changes from +6 to +3.
The oxidation number of each N atom changes from −2 to 0.
Net increase in the oxidation number of two N atoms in hydrazine =4.
Thus, 3 moles of hydrazine =4 moles of K2CrO4.
Molar mass of hydrazine is 32 g/mol.
Molar mass of potassium chromate is 194.19 g/mol.
The mass of hydrazine that can be oxidized is 34×24.0g194.19g/mol×32g/mol=2.969g=3g.