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