For each mole of the compound, there are 3 moles of Mg2+ and 2 moles of $\ce{AsO4^{3-}}$ Let x = [$\ce{Mg3(AsO4)2}$] $27x^34x^2 =$ Ksp $108x^5$ = Ksp