The first step to find the extrema values of a function is to find its derivative:

We know that the extrema values (local or absolute maximum or minimum) occur at points in which the derivative of the function has a value of zero. To find these points we have to make the derivative equal to 0 and solve the expression for x, this way:

There is no possible way for e^-x to be 0, which means that 2x-x^2 must be 0:

It means that there is an extrema value at x=0 and at x=2.
To find their values we just have to evaluate the function at these points, it means we have to find f(0) and f(2):

The local or absolute extrema values in the given interval are 0 and 29.6.