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