expand and simplify
(x + 5)(x + 2)
(x + 5) (x + 2) = distribute the two terms in the first set of parentheses over the terms in the second set of parentheses......
x(x + 2) + 5(x + 2) =
x^2 + 2x + 5x + 10 = combine like terms
x^2 + 7x + 10