We use the FOIL method here. First, Outer, Inner, and Last.
(5x)(x) = 5x^2
(5x)(-7) = -35x
(2)(x) = 2x
(2)(-7) = -14
5x^2 - 35x + 2x - 14
Now combine like terms.
5x^2 - 33x - 14.
This is the right answer because it is now in the form of ax^2 + bx + c