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