Freddy the fruitseller receives a delivery of apples in a number of large crates, each containing 51 apples and 1 small container containing 39 apples. If Freddy wants to display the apples in boxes of 17 each, how many apples will be left over?