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