Substitute each of the capital letters in this 4x4 grid by a different digit from 0 to 9, such that the sum of each of the four columns as well as the sum of each of the four rows is TO.
S H O P
P I P E
A R E A
R E N T
Note: TO represents the number 10*T + O.