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