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