Given the function f (3x) = 3x + 2, then f (x) is equal to

Given the function f (3x) = 3x + 2, then f (x) is equal to

Let a = 3x
x=a/3
So f (a) - 3A / 3 + 2 = a + 2
So f (x) = x + 2