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