The nucleon number and the proton number of a neutral atom of an element are…