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