To find out how much money Trevor had before his purchase, you can add the amount he spent to the amount he has now (which is zero).
So, if Trevor spent $27 and now has no money:
Amount before purchase = Amount spent + Amount after purchase Amount before purchase = $27 + $0 Amount before purchase = $27
Therefore, Trevor had $27 before his purchase.