Answer:
D.

Explanation:
Let the number of bags = b and total number of cookies = c.
We have that there are 5 cookies in a bag.
Also from the table, we see that,
The number of cookies are increasing by 5 per bag.
Then, number of cookies in 'b' bags =

Also, there are 20 cookies in a jar.
Then, we have that,
The total number of cookies = Number of cookies in 'b' bags + Number of cookies in a jar
i.e.

So, option D represents the rule.