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