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