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