Step 1: Rule for writing ion configurations. First write the configuration of the neutral atom, then remove electrons for a cation. For d-block ions, electrons are removed from the outer 4s orbital first and then from 3d.
Step 2: Cr3+ (Z = 24). Neutral chromium: [Ar] 3d5 4s1. Removing 3 electrons (first the 4s electron, then two 3d electrons) gives:
Cr3+: [Ar] 3d3, i.e. 1s2 2s2 2p6 3s2 3p6 3d3.
Step 3: Cu2+ (Z = 29). Neutral copper: [Ar] 3d10 4s1. Removing 2 electrons (first 4s, then one 3d) gives:
Cu2+: [Ar] 3d9, i.e. 1s2 2s2 2p6 3s2 3p6 3d9.
Step 4: Formulae of the ions.
Chromate ion: CrO42−
Dichromate ion: Cr2O72−