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