2(a^2+b^2+c^2+ab+bc-ac)
=2a^2+2b^2+2c^2+2ab+2bc-2ac
=(a+b)^2+(b+c)^2+(a-c)^2
=5^2+2^2+(5-2)^2
=25+4+9
=38
所以a^2+b^2+c^2+ab+bc-ac=19
2(a^2+b^2+c^2+ab+bc-ac)
=2a^2+2b^2+2c^2+2ab+2bc-2ac
=(a+b)^2+(b+c)^2+(a-c)^2
=5^2+2^2+(5-2)^2
=25+4+9
=38
所以a^2+b^2+c^2+ab+bc-ac=19