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