I've seen it so many times.
The $27 is the expenditure.
The $2 gain,
If you add them, one of them have to have a minus sign.
Its just a problem that says, I earn $100 and spend $50, OMG, thats $150!!! Only in a less easy to spot manner.