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