Rule 1. More negative the element, the bigger the radius.
Rule 2. Atomic radii increases as you go right to left and down the periodic table.
So, according to rule 1: Mg2+ is more positive than P, so Mg2+ is smaller than P
also Mg2+ = Ne and Ne is in Group 8 and P is in group 5, therefore P has greater atomic radii than Ne (Mg2+)
Below would be in order of increasing radii
Ca2+ < K+ < Cl- < S2- < p3-
more positive-----> more negative