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