The stoichiometry is 1:1:1:1 which means that if you don't have the same number of moles of each reactant, one will be in excess.
1) Find moles of Mg and moles of Cu(ClO3)2
2) Whichever is less in moles is the limiting reactant - this is only true for 1:1 stoichiometry. If the stoich ratio required was not one, you could take the ratio of the moles of the two reactants and compare it to the stoichiometric ratio.
3) The moles left of the excess reactant is moles of excess - moles of limiting reactant for 1:1
4) Convert back to grams of excess reactant by multiplying by the molar mass.
Please consider a tutor. Take care.