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