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