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