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