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