If a + b = 10 and ab = 16, find the value of a2−ab+b2 and a2+ab+b2.
If a2+b2+c2=16 and ab + bc + ca = 10, find the value of a + b + c.