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