I'm getting around 24.g, because I'm assuming STP with this problem. So I assumed that 1 mol of CO2 occcupied a volume of 22.41L.
With this I concluded that 5.0L of CO2 at STP was (without rounding) .2231 mol of CO2.
I do not know if this is a worthy assumption, giving the problem.