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