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