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