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