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