A bag contains 8 oatmeal and 10 molasses cookies. What is the ratio, written in the lowest terms, of molasses cookies to the total number of cookies in the bag?
A. 4 to 5
B. 5 to 4
C. 5 to 9
D. 4 to 9