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