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