How do you multiply #(m - 5)(m + 2)#?
You multiply element by element.
When you multiply two parenthesis you have to multiply each element inside the first parenthesis for each element of the second parenthesis.
Now the terms with the same power can be summed together.
In this case the only terms with the same power are