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