(8p-4)(5p+2)

Apply the distributive property.

8p(5p+2)-4(5p+2)

Apply the distributive property.

8p(5p)+8p⋅2-4(5p+2)

Apply the distributive property.

8p(5p)+8p⋅2-4(5p)-4⋅2

8p(5p)+8p⋅2-4(5p)-4⋅2

Simplify each term.

Multiply p by p.

8⋅5p2+8p⋅2-4(5p)-4⋅2

Multiply 8 by 5.

40p2+8p⋅2-4(5p)-4⋅2

Multiply 2 by 8.

40p2+16p-4(5p)-4⋅2

Multiply 5 by -4.

40p2+16p-20p-4⋅2

Multiply -4 by 2.

40p2+16p-20p-8

40p2+16p-20p-8

Subtract 20p from 16p.

40p2-4p-8

40p2-4p-8

Simplify (8p-4)(5p+2)