There are 9 purple candies.
Now, it asks for the total amount of candies. That means you have to add all of the candies including the purple.
6 + 9 + 7 + 14 = 36
The ratio asks for the purple candies over the total amount of candies.
That would be 9/36, which would be 1/4 in simplest form.