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