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