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