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