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