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