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