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