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