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