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