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