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