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