📖 Explanation
The precipitation of a sparingly soluble salt from a solution occurs when the ionic product of its constituent ions exceeds its solubility product, Ksp. By calculating the exact concentration of hydroxide ions required for each compound to begin precipitating, one can determine which salt will form first as NH4OH is added.
For A(OH)2, the equilibrium condition is [A^{2+}]\[\mathrm{OH}^-]^2 = 9 × 10^{-10},andgiventhattheconcentrationofA^{2+}is1\ \mathrm{M},theprecipitationthresholdis[\mathrm{OH}^-] > \sqrt{9 × 10^{-10}} = 3 × 10^{-5}\ \mathrm{M}.Similarly,for\mathrm{B}(\mathrm{OH})_3,theequilibriumconditionis[B^{3+}]$[\mathrm{OH}^-]^3 = 27 \times 10^{-18},andwith[B^{3+}] = 1\ \mathrm{M},thethresholdforprecipitationis[\mathrm{OH}^-] > \sqrt[3]{27 \times 10^{-18}} = 3 \times 10^{-6}\ \mathrm{M}.Becausethesolutionreachesthelowerhydroxideconcentrationof3 \times 10^{-6}\ \mathrm{M}beforeitreachesthehigherconcentrationof3 \times 10^{-5}\ \mathrm{M},\mathrm{B}(\mathrm{OH})_3willprecipitatebefore\mathrm{A}(\mathrm{OH})_2$.