David purchased three shirts that cost an equal price as well as a hat for $15. If he spent $47.52 shopping, write an equation that represents the situation.