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