What is the atomic number of carbon, this sets the number of electrons.
You then need to know the filling rules for electronic configurations.