Sam has a bag of marbles containing a mix of blue and green marbles. There are a total of 24 marbles in the bag. If 1/3 of the marbles are blue, how many blue marbles does Sam have?