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