There is only one function that is defined at x=0. So what do you think f(0) would be?
Which of these piecewise functions is defined for positive values of x (i.e. x>0)? Substitute 2 into that function to get the value of f(2).
Does this make sense?