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