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