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