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