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