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