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