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