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