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