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