I have a question with the problem below, how would I find the function f(x) using the table they have given us? Problem:

All help is appreciated!