Given a + B = 5, ab = 7, find the square of a, B + the square of ab-a-b

Given a + B = 5, ab = 7, find the square of a, B + the square of ab-a-b

Square of a + square of ab-a-b
=ab(a+b)-(A+b)
=(ab-1)(a+b)
=6x5
=30