Alex has 10 marbles. He wins 7 more marbles in a game at school and then loses 5 marbles on the playground. How many marbles does Alex have left?