Mary has 9 yellow marbles. She gave Joan 3 yellow marbles. How many yellow marbles will Mary have left?