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