if a+b=10 and ab=16.find the value of a^2-ab+b^2 and a^2+ab+b^2

since (a+b)^2 = a^2 + 2ab + b^2

10^2 = (a^2 + ab + b^2) + 16
a^2 + ab + b^2 = 100-16 = 84

similarly for the other