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