Hi!
To solve this problem you can set up a proportion (I like doing it this way) or you can just do:
First deal:
(24/3)*5 = 40 dollars
Second deal:
(24/4)*6 = 36 dollars
Finding money saved:
40-36 =4
They will save 4 dollars buying the second 4 for 6 dollars deal!