If you horizontally compress the exponential function f(x) = 2x by a factor of 3, which of these is the equation of the new function?

A. f(x) = 6x

B. f(x) = 2(3x)

C. f(x) = 5x

D. f(x) = 3(2x)