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