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