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