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