The number 8,844 contains two sets of digits in which one digit is 10 times as great as the other. Find the values of the digits in each set