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