Based on the information provided, the function seems to be represented by the equation:
\[ y = 2x - 4 \]
This equation shows the relationship between the input \( x \) and the output \( y \) as given in the problem. The expression on the right side ( \( 2x - 4 \) ) is equal to the output \( y \).