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