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