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