Since the variable can be any letter, it is the exact same equation but with different letters as x. Although the equation of G(y) has a y instead of x, you know y is the x and g(y) is the y because the y inside of the parentheses tells us that y is the independent variable.