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