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