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