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