For a positive number k, the smallest positive period of the function f(x) = cos(kx) is 6. Find the value of f(2022).
f(2022) = 24.