Maria has a collection of marbles. She has 12 blue marbles and 8 red marbles. Maria gives away some of her blue marbles to her friend. After giving away 3 blue marbles, how many marbles does she have left in total?