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