How many ways can a student schedule 3 mathematics coursesalgebra, geometry, and number theory - in a 6-period day if no two mathematics courses can be taken in consecutive periods? (What courses the student takes during the other 3 periods is of no concern here.)

**Answer Choices**

A. 3

B. 6

C. 12

D. 18

E. 24