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