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