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