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