Since each person bought a ticket for $45, the total spent on tickets would be 4 times $45 = $180.
So, the total amount spent including t-shirts would be $288 - $180 = $108.
Since there are four people, the cost per t-shirt would be $108 divided by 4 = $27.
Therefore, the price of the t-shirt was $27.