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