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