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