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