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