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