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