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