What is the value of the function y=3x-1 when x = –1?
A.–8
B.–4
C.2
D.6
A.–8
B.–4
C.2
D.6