Plotting the functions is highly recommended.
For A, the area under
over the interval [1, 2] is the area of rectangle with height 3 and width 2 - 1 = 1, so the area is

For B, the area under
plotted over the interval [0, 2] is the area of a triangle with height 1 and base length 2, so the area is
