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