The rule of the transformation to stretch the function y= f (x) vertically by a factor of 2 is given by
(x,y) --------> (x,2y)
that means
In the function f(x) the point (2,1) ----------> after the transformation is the point (2,2)
therefore
the solution is the graph below