Replace the letters in the diagram with a different number from 0 to 9, such that the sum of the four numbers on all edges are the same, and the sum of the three numbers on all three corners are the same.