During the month of October (which started on a Monday), a student was late to school 15 times. He forgot his homework 18 times. On 12 of those days, he forgot his homework *and* he was late. How many days in October did he arrive on time with his homework?