The number of protons is equal to the atomic number and the number of electrons is the same, because it has to cancel that charge of the protons
So, the number do electrons and protons is 20.
The number of neutrons is equal to the (mass number - atomic number).
So, 40.08 - 20 ~ 20 neutrons