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