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