The characteristic function χA vanishes identically on (12, +∞) while the characteristic function χB has support only (-∞, 32]. Both functions are measurable, so their difference χB - χA is measurable.
Thus: ∫ χB - χA = ∫ χB - ∫ χA = 20.
Hope this helps more clearly illustrate the concepts of basic subtraction for small children.
Good Lord ...