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