Maria has a collection of 30 marbles. If she gives away some of her marbles to her friend, she will have 12 marbles left. How many marbles did Maria give to her friend?