To find the number of gummy bears in the bag of candy, we can use the given ratio of gummy bears to gummy worms, which is 5:4.
Let \( b \) be the number of gummy bears and \( w \) be the number of gummy worms. According to the ratio:
\[ \frac{b}{w} = \frac{5}{4} \]
We also know that there are 160 gummy worms in the bag, so we can set \( w = 160 \).
Now we can substitute this value into the ratio equation:
\[ \frac{b}{160} = \frac{5}{4} \]
To find \( b \), we can cross-multiply:
\[ 4b = 5 \times 160 \]
Calculating the right side:
\[ 5 \times 160 = 800 \]
Now we have:
\[ 4b = 800 \]
Next, divide both sides by 4 to solve for \( b \):
\[ b = \frac{800}{4} = 200 \]
Thus, there are 200 gummy bears in the bag of candy.