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