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