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