I think I have done a question like this before and i'm pretty sure your answer would be the 2nd one 1s22s22p4. I'm not 100% sure but try it at least.
A is correct................
Sodium chloride is the chemical name for salt and is composed of sodium and chlorine, so it is a compound.
Mass =70 ( Mass of protons=1 ,Mass of neutrons =1, Mass of electron =0.0005(can be ignored))
Therefore, 40 +30=70
Charge= -2 ( it is taking in/attracting electrons to its shell) base on the proton number you are able to identify if it is attracting or releasing an electron, if the electron number is more than proton number then it is attracting therefore resulting in a negative charge vice versa for releasing an electron.