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