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