I set both deals as a ratio and cross multiplied them with X/1 to get how much each apple would cost per one apple. The first deal ended up being cheaper with 1.25 dollars per apple. The more expensive deal was 1.28 dollars per apple. Therefore 5 apples for 6.25 dollars is the better deal.