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