It’s actually the last equation (I)
If u plug in the x coordinate in the table (eg.2) into the equation y=3x-2, you are left with y=3(2)-2 which equals 6-2=4
So y=4
Checking the corresponding value for that x value, the y value is 4 so the equation is correct.