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