Concept:For an equation of the form a2+b2+c2+k=2(ma+nb+pc), completing the square gives a=m, b=n, c=p.Explanation:Given: a2+b2+c2+189=6(a+4b+2c).Expand the right-hand side: 6(a+4b+2c)=6a+24b+12c.Rearrange: a2−6a+b2−24b+c2−12c+189=0.Complete the squares:(a2−2×3a+32)+(b2−2×12b+122)+(c2−2×6c+62)+189−9−144−36=0.This simplifies to: (a−3)2+(b−12)2+(c−6)2=0.Since the sum of squares is zero, each square must be zero: a=3, b=12, c=6.Now compute: ab+bc+ca=3×12+12×6+6×3.So, 36+72+18=126=9×14=314.Answer:ab+bc+ca=314, which is option D.