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