Hi,
For the first one, I think the answer is 3. There are 14 valence electrons (4 in carbon, 4 in carbon, and 6 in oxygen). The question tells us there are four double bonds, C=C=O, therefore 8 out of the 14 electrons are involved in bonding. This leaves 6 electrons, which will form 3 lone pairs.
For the second one, I think you need to consider the fact the question is asking about ions. Sodium would lose it's outer electron in the 3s1 and become a positively charged ion. The chlorine would gain an electron to complete the 3p shell. This means the sodium ion would have an electronic configuration of 1s2 2s2 2p6, where as the chloride ion would have an electronic configuration of 1s2 2s2 2p6 3s2 3p6. Therefore, the chloride ion would have one more electron shell occupied 🙂
Hope this helps and let me know if you have any questions!