The correct answer is 2 and 5 only please explain why tho

We have that the graph has inflection points where the slope of the function is "0".
From this function we can see that the slope is "0" when x = 2 & x = 5; in all other places the slope is different from "0".