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