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