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