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