I believe you just have to replace the y in your equation with f(x), so your equation should read f(x)=5x+2. If you get further along and have a messier equation, just make sure that the y value (which becomes f(x)) is alone and everything else in the equation is on the other side.