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