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