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