You can put this solution on YOUR website! In a g(x) is x by definition and f(x) is 1 by definition. It is x as x approaches 0, so the limit is 0.
In b both f(x) and g(x) are x for all x approaching 2. Only at 2 does the value of g(x) change to 3. This limit is x/x or 1.