Answer : The number of moles of formaldehyde produced will be, 4 moles.
Explanation :
Moles of
= 4.0 mole
Moles of
= 4.0 mole
First we have to calculate the limiting and excess reagent.
The balanced chemical reaction will be :

From the balanced reaction we conclude that
As, 2 moles of
react with 1 mole of

So, 4 moles of
react with
moles of

From this we conclude that,
is an excess reagent because the given moles are greater than the required moles and
is a limiting reagent and it limits the formation of product.
Now we have to calculate the moles of
.
As, 2 moles of
react to give 2 moles of

So, 4 moles of
react to give 4 moles of

Therefore, the number of moles of formaldehyde produced will be, 4 moles.