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