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