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