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