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