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