y=3x-2 is a function because it passes the vertical line test.
This means that for each individual x-value that we substitute for x, there is a unique individual y-value that y ends up equaling to.