Using FOIL (first outer inner last) u can determine that the final term will be produced by multiplying the last terms in each bracket. These are A and B, so the final term of the resulting trinomial is AB.
You can check this by fully expanding (x + A)(x + B):
the terms B and A are usually numbers, so Bx and Ax tend to get added together to form a middle term. hope this helps!