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