I reckon you are about to know some grammar with English explanation.
得 eg 他跑得快。he runs quickly. ( emphasize he can run quick)
得 is put between predicate and adverb, then the predicate get motified by the adverbial modifier. it represents meaning that the subject IS ABLE TO do so.
的 eg1 他跑的速度很快。his running speed is quick.
eg2 红色的树叶。 red leaf.
的 is put before a noun so the noun get attribute. And all of the adjective are originally contain 的 as in eg2( normally can be emitted).
地 eg 飞快地跑 runs quickily ( emphasize he IS RUNNING quick)
地 is put between adverb and predicate , emphasize the state, not the subject.