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