A function f has the property that f(3x-1)=x^2+x+1 for all real numbers x. What is f(5)?

This is the most helpful site on the web thank you all so much

f (3x - 1) = f (5) which implies that

3x - 1 = 5 add 1 to both sides

3x = 6 divide both sides by 3

x = 2

So.....subbing this value into the function, we have

(2)^2 + (2) + 1 = 4 + 2 + 1 = 7