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