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