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