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