A merchandise table at a concert is selling posters and hats. The table sold 25 items for the day. The number of posters sold was five more than the number of hats sold. How many posters and hats were sold?

Let X be the number of hats sold.

There were 5 + X posters sold.
X + (5 + X) = 25
2X + 5 = 25
2X = 20
X = <<10=10>>10 hats sold.
Posters sold were 5 + 10 = <<5+10=15>>15.
The table sold 10 hats and 15 posters for a total of <<10+15=25>>25 items. Answer: \boxed{10, 15}.