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