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