Okay, let's think through this step-by-step:
* For 1 guest, you need 2 bags of spaghetti
* For 2 guests, you need 5 bags of spaghetti
* For 3 guests, you need 8 bags of spaghetti
Let's call the number of guests n. Then we can write:
For n = 1 guest, bags of spaghetti = 2
For n = 2 guests, bags of spaghetti = 5
For n = 3 guests, bags of spaghetti = 8
Looking at the pattern, it seems the number of bags increases by 3 each time the number of guests increases by 1.
So the rule is:
Number of bags of spaghetti