Let r be the radius of the third ball. Then,
Volume of spherical ball of radius 3 cm= Volume of three small ball of radius (1.5 cm,2 cm,r cm)
⇒43π×33=43π×(1.5)3+43π×23+43πr3
⇒27=278+8+r3 [on canceling 4π3 from both sides]
⇒r3=27−8−278=1258
⇒r=3√5323=52 =2.5 cm
Hence, the diameter of the third ball is 2×2.5=5 cm.