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