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