The charge of an atom can be determined by adding the two numbers together. This means the charge of an atom that has +20 protons and -18 electrons would be +2. The protons and electrons aren’t the same which is why they didn’t cancel each other out.
So the answer to your question is +2