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