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