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