Could someone explain how to get the correct answer when trying to find the f(X) and g(X) on a graph like this? Thanks!

Could Someone Explain How To Get The Correct Answer When Trying To Find The FX And GX On A Graph Like This Thanks class=