To find the number of licorice ropes \( r \) that came in the bag, we can set up the equation based on the information given:
Each of the 8 students receives 4 licorice ropes. Therefore, the total number of licorice ropes \( r \) can be expressed as:
\[ r = 8 \times 4 \]
Now we can write this as an equation:
\[ r = 32 \]
Thus, the equation you can use to find the number of licorice ropes \( r \) is:
\[ r = 8 \times 4 \]
So the answer is: \[ r = 32 \]
This means that there were 32 licorice ropes in the bag.