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