It's simple. You have to subtract FIRST 18.75-5=13.75 for the Jones Family. Then you divide 13.75 by 2 bags of popcorn which equals $6.87 for the Jones Family.
For Smith Family, subtract 31.50-4=27.50. Then you divide 27.50 by 6 bags of popcorn which equals $4.58