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