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