It is known that: the square of a + the square of B - 2A + 4B + 5 = 0, find the value of 2ab-1 Please!

It is known that: the square of a + the square of B - 2A + 4B + 5 = 0, find the value of 2ab-1 Please!

The square of a + the square of B - 2A + 4B + 5
= (a-1)^2 + (b+2)^2
= 0
a = 1
b = -2
2ab -1 = -4-1 = 5