You can remember the meaning of 代价 with this easy mnemonic:
A substitute (代) teachers price (价) is half the price of a normal teacher.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.