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