Are all lone pairs considered as π-electrons?

According to me, in methylenepyran 8 π-electrons are present as there are 3 double bonds. Therefore, 2 × 3 = 6 π-electrons and 2 π-electrons as one of the two lone pairs of oxygen will participate in resonance.

But the correct answer is 10 π-electrons. How? Are both lone pairs of oxygen are being considered? If yes, then why?

• Your reasoning is fine, and 10 is nonsense. – Ivan Neretin Aug 23 at 6:27
• I thought the same. – Garima Singh Aug 23 at 6:42
• Can you quote the question statement along with options, or link the source, saying the other way. – rv7 Aug 25 at 6:12

Based on the above the following resonance structures are possible. These have 8 $$\pi$$ electrons in conjugation. You are correct.