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