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