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