From A-4+AB+B-4 = (A-2+B-2)+AB-4 =1+AB-4.
Get b(5-b)-3=-b squared +5b-3.
The square of formula -(b-2/5) is+13/4.
So when b=2/5, the maximum value is 13/4.