Mara bought 8 boxes of pencils and 3 packages of pens for $24. At the same store, Elaine bought 4 boxes of pencils and 6 packages of pens for $30. How much does one box of pencils cost