Mary has 2 * 3 = <<2*3=6>>6 cards.
Jimmy has 18 - 3 - 6 = <<18-3-6=9>>9 cards left.
#### 9