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