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