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