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