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