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