Set a+b+c=x and a1+b1+c1=y. Let k=6x, then
a+b−5c=6(k−c),b+c−5a=6(k−a),c+a−5b=6(k−b).
It follows that
(a+b+c)(a+b−5c1+b+c−5a1+c+a−5b1)=6x(k−a1+k−b1+k−c1).(1)
Adding the fractions in the right-hand side of (1), we obtain BA, where
A=(k−a)(k−b)+(k−b)(k−c)+(k−c)(k−a) and B=(k−a)(k−b)(k−c).(2)
Let z=abc, then ab+bc+ca=yz. From (2) it follows
A=3k2−2zk+yzandB=k3−zk2+yz−z.(3)
Since x=6k and xy=227, we have y=4k9. Substitute for x and y in (3) to obtain
A=3k2−2⋅6k⋅k+4k9z=9(−k2+4kz),B=k3−6k⋅k2+4k9zk−z=5k(−k2+4kz).
Thus
BA=5k9,and6x⋅BA=k⋅5k9=59.
Hence
(a+b+c)(a+b−5c1+b+c−5a1+c+a−5b1)=59.