Given a + B = 5, ab = 3, then the value of the algebraic formula a3b-2a2b2 + AB3 is______ .

Given a + B = 5, ab = 3, then the value of the algebraic formula a3b-2a2b2 + AB3 is______ .

∵ a + B = 5, ab = 3, ∵ a3b-2a2b2 + AB3 = AB (a2-2ab + B2) = AB (a-b) 2 = AB [(a + b) 2-4ab] = 3 (25-12) = 39