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