Although it can be tempting to dive straight into such a question, its always useful in mathematics to take a step back and assess the question before scribbling down panicked answers.
For instance, in this case consider f as a piece of machinery (a function) where a number is inputted and another number is outputted. In this example we seek number(s) to input, which correspond to an output of '5'.
So to go about this question, lets initially set f(x)=5, ie x3 - 2x2 + 5 = 5. Now since we forced f(x) to equal 5, we simply rearrange to make x the subject, which gives our desired answer(s). Taking away 5 from each side yields x3 - 2x2 =0. Now since both terms contain an x2, we can factorize this equation, giving x2(x-2)=0. Note that factorizing x2 is preferable to dividing through by x2 since by dividing we lose information and potential solutions.
So, x2(x-2)=0 implies that x=0 and x=2 are our solutions, as 02(0-2)=0 and 22(2-2)=0. Hence the solutions to the problem is x=0 and x=2, only.