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