Since the ratio is 2:3:7, there are 2+3+7=12 parts in any salsa recipe.
Each part is equal to 36cups/12parts=3cups/part.
We want the number of cups of onion, which is represented as 3 parts.
3*3=9
So 9 cups of onion are necessary for a 36 cup salsa recipe.