Step-by-step explanation:
Given : a+b = 10 & ab = 16
(a+b)^2= a^2+2ab+b^2
10^2= a^2+2×16+b^2
100=a^2+32+b^2
a^2+b^2=100-32
a^2+b^2=68
Substituting the value of a^2+b^2=68 in a^2-ab+b^2
a^2+b^2-ab
=68-16
=52
Now, substituting the value of a^2+b^2=68 in a^2+ab+b^2
a^2+b^2+ab
=68+16
=84