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