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