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