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