We have the product:
[tex](x+5)(x+8)[/tex]To get to:
[tex]x(x+8)+5(x+8)[/tex]we use the distributive property of the product with the sum (x+5).
Now, to get:
[tex]x^2+8x+5x+40[/tex]we use the distributive property once again with each produtct in the step before.
Finally to get:
[tex]x^2+13x+40[/tex]we add like terms in the expression before.
Now, this gives the same result as the box method.