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