They say you cannot add apples and oranges. However, when you subtract one fruit from another you get an interesting result, as shown in the puzzle below. Each letter represents a different digit from 0 to 8. The digit 9 does not appear anywhere. Can you break the code?

(Source: Mathematics Teaching in the Middle School, Jan-Mar 1995)