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