Using only the digits 0-9, but not 3 or 5, solve for each letter:
GRAPE - PLUM = APPLE
You can only use one digit for each letter.
GRAPE = 94872 ; PLUM = 7160; APPLE = 87712
Hence, the required equation after the said substitution is:
94872 - 7160 = 87712