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