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