The specific solutions are as follows
Disassemble the known conditions into a 2+2ab+b 2 = 7-( 1).
a^2-2ab+b^2=3 - (2)
(1)+(2) gives a 2+b 2 = 5-(3).
Substitute formula (3) into (1) or (2) to get ab= 1.