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