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