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