As the Question is not clear
But there are two possibilities
1.
→→Cancelling x+2 from numerator and denominator
→→ Using the formula (a³ + b³) =(a+b)(a² - ab + b²)
Or if
→→Cancelling x-2 from numerator and denominator
Using the formula (a³ - b³) =(a-b)(a² + ab + b²)
Statement (1) appears true.
So, correct option is x²- 2 x + 4 or x² + 2 x + 4