How to calculate the equation when 3 * (12-x) = 24?

How to calculate the equation when 3 * (12-x) = 24?

3*(12-x)=24;
12-x=8;
x=12-8;
x=4;