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