we are given two recipes for cookies and we are asked which of the two contains more sugar. To do that we need to find the amount of sugar per cookie for each recipe.
For recipe A we have:

This means:

For recipe B we have:

This means:

Since 1/18 is greater than 1/24, this means that there is more sugar per cookie in recipe B than in recipe A.