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