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