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