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