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