James has a collection of marbles. He counts that he has a total of 24 marbles. If he decides to give away 6 marbles to his friend, how many marbles will James have left?