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