A garden consists of an apple tree, a pear tree, some cauliflower heads, and some cabbage heads. There are 40 vegetables in the garden. 24 of them are cauliflower heads. What is the ratio of the number of cauliflower heads in the garden to the number of cabbage heads?