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