If f(x) = 3x+2 and g(x) = (x-1)^2, what is f(g(-2))?
We have g(-2) = (-2-1)^2 = 9, so f(g(-2)) = f(9) = 3(9) +2 = 29.
Complete the following task based on the instruction and optional input provided.### Instruction:
If f(x) = 3x+2 and g(x) = (x-1)^2, what is f(g(-2))?

### Output:
We have g(-2) = (-2-1)^2 = 9, so f(g(-2)) = f(9) = 3(9) +2 = 29.