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