Pencils sell for 1.98 per dozen a teacher bought 288 pencils for his math classes. How much did the pencils cost?