Given the quadratic power of a + AB = 10, the quadratic power of B - AB = 7, find the quadratic power of a + 2ab-b

Given the quadratic power of a + AB = 10, the quadratic power of B - AB = 7, find the quadratic power of a + 2ab-b

The second power of a + AB = 10, the second power of B - AB = 7
The second power of a + the second power of 2ab-b
=a²+ab+ab-b²
=a²+ab-(b²-ab)
=10-7
=3