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