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