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