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