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