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