Alice has a collection of marbles. She owns a total of 50 marbles. If she gives away a certain number of marbles to her friend Bob and has 20 marbles left, how many marbles did Alice give to Bob?