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