The rule of a function changes from

f(x) = 2³ - 8 to g(x) = 3x³- 24 when it is dilated

Which statement best describes how this dilation affects the graph of f(x)?

A. The graph slides 3 units downward.
B. The graph slides 3 units upward.
C. The graph is stretched vertically by a factor of 3.
D. The graph is compressed vertically by a factor of 3.