This is what the graph would look like
You can make a ratio of red to overall colors and then that will give you the fraction, you might have to simplify it
3/5 would be the answer because every 3 banana nut here is 5 corn
First, you make 9 into a fraction which would become 36/4
then, subtract 9/4 from both sides so that would give you 3/4x = 27/4
then divide each side by 3/4 (same thing as multiply by its reciprocal) and that would give you x=9