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