Use the polynomial remainder theorem. It states that division of [tex]p(x)[/tex] by some linear factor [tex]x-c[/tex] yields a remainder of [tex]p(c)[/tex].
In this case, [tex]p(x)=5x^3+7x+5[/tex] and [tex]c=-2[/tex], so the remainder is
[tex]p(-2)=5(-2)^3+7(-2)+5=-49[/tex]