The temperature had to rise 4 degrees to reach zero, and then another 8 degrees to reach 8. The total increase was (4 + 8) = 12 degrees.
A more formal way to do it:
The change is (end value) minus (start value)
Change = (8) - (-4) = (8) + (4) = 12 degrees.