A salsa recipe uses green pepper, onion, and tomato in the extended ratio 1 : 3 : 9. How many cups of onion are needed to make 117 cups of salsa?
A. 3
B. 27
C. 9
D. 81