There are 6 baskets on the table. Each basket has 0, 12, 7, 6, 18 and 9 apples. Sean chose sixth, Liam chose fifth, John chose third, Matt chose second, Emma chose first, and Olivia chose fourth. How many apples did John and Matt choose in total?