Step 1: Distribute the 5 into the first parentheses.
5(x2+x−1)=5x2+5x−5
Step 2: Distribute the negative sign into the second parentheses.
−(5x2−x+2)=−5x2+x−2
Step 3: Rewrite the expression by combining both parts.
5x2+5x−5−5x2+x−2
Step 4: Combine like terms for x2:
5x2−5x2=0
Step 5: Combine like terms for x:
5x+x=6x
Step 6: Combine constant terms:
−5−2=−7
Step 7: Simplified expression:
6x−7
C. 6x−7
6x-7