I'll express the integral from -2 to 2 as (-2,2).
The section of (-2,2) plus the section of (2,5) makes one section of: (-2,5)
Now we take away the section of (-2,-1) and we are are left with (-1,5). If you're confused look at each section as a section of the number line.