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