You bought 12 red apples and 15 green apples to make some pies.

What is the ratio of the number of red apples to the total number of apples?