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