How to find a and B

How to find a and B

a²+b²=10,ab=3
a²+b²+2ab=16
(a+b)²=14
a+b=±4
a²+b²-2ab=4
(a-b)²=4
a-b=±2
Then the equations are solved in four cases