Two conditions have to hold at once. The sum of the roots is −b, so −b=2 forces b=−2, which rules out both options with +2x2.
The product of the roots is −d, so −d=−8 forces d=8:
−b=2⇒b=−2,−d=−8⇒d=8
Only x3−2x2+5x+8 has both. The option x3−2x2+5x−8 gets the sum right but its roots multiply to +8.