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