For this case, the first thing we must do is define variables.
We have then:
x = caramel chocolates
y = chocolates with nuts
We now write the system of equations:
x + y = 20
x = 3y
Solving the system we have:
x = 15
y = 5
Answer:
there are:
15 caramel chocolates
5 chocolates with nuts