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