Students bought two pencil bags for cost $1.15 each. They figured that they could share one package of four mechanical pencils. The pencil packs cost $1.79 each. While in line waiting to checkout, they decided to also buy a $2.39 candy bar. About how much did they spend (not including tax)?