Tom has a box containing 120 marbles. He decides to give away some of the marbles to his friend. If he gives away 30% of the total number of marbles, how many marbles does he give away?