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