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