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