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