Let f(x)=10x+2,g(x)=2^x, and h(x)=x^2+2x+1. Which function has the greatest output value for x=2.

A. Function f

B. Function g

C. Function h