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