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