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