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