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