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