The following is a listing of the amount of sugar in six popular snacks found on a high school campus:
34g 34g 42g 50g 52g 58g
What is the median?