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