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