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