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