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