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