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