A quarter is 2/8. If you simplify the 2/8, it becomes 1/4.. hence the term quarter.

A half bag is a half ounce.

A full ounce contains 28 g, and there are 3.5 grams in an eighth.. 3.5 x 8 = 28