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