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