-18-(-12)=-6
Since there is two negative sign, it turns into positive meaning the -12 becomes positive 12 and the -18 stays same. So -18+12=-6 because 18 is bigger than 12 and it's negative so the final answer should be negative.
Hint: when you see two negative sign just turn them into plus sign.