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