Let the money Trevor had before purchase be x.
After his purchase, he has no money left.
So, x - 27 = 0
x = 27.
Hence, Trevor had $27 before his purchase.
9.4m questions
12.1m answers