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