Which method is correct for squaring a binomial expression of the form ax + b, where a and b are real numbers and x is a variable?

Squaring the binomial ax+b:
[tex]\begin{gathered} (ax+b)(ax+b)=(ax)\placeholder{⬚}^2+(ax)(b)+(ax)(b)+(b)\placeholder{⬚}^2 \\ (ax+b)(ax+b)=(ax)\placeholder{⬚}^2+2(ax)(b)+(b)\placeholder{⬚}^2 \end{gathered}[/tex]As you can see above to square the given polynomial using the method A you get at the end the formula given in method B.