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