Answer:
The function g(x) = (3x)² can be simplified to g(x) = 9x², which is a vertical stretch of f(x) = x² by a factor of 9.
Therefore, the correct answer is B. The graph of g(x) is vertically stretched by a factor of 3 compared to the graph of f(x).