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