If on the intervall I, then the area is

The procedure is the same for the second problem, only that you you might need to split the integral into smaller intervals and switch the functions around (try to graph the functions to get a better overview).