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