How to check a functional equation correctness

I want students to enter the equation of a function after a transformation given a graph.

Example, if y=f(x), I want them to enter g(x)=f(x-4). (I would write intial value g(x)=)

Thank you!

This should probably do what you want: Function Transformations in af(k(x-c))+d Form | Component Based Approach