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