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