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