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