I am trying to say the sentence "This apple is not fresh, but I can buy a fresh one." Here is my attempt based on pure translation:
Der Apfel ist nicht frisch, aber ich kann einen frischen einen kaufen.
I know ein can be used with der/die/das to signify "the one", so I have tried to extend the logic to cover "a fresh one".