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