This is because whenever there are two negative signs, multiply it.
Negative x Negative = Positive
We have to do, 24 + 12 which is 36. Finally, we just put the greater number's sign to the answer. 24 is greater than 12, therefore, we put a negative sign before 36.