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