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