will those same steps work if the problem

is x/12=2/6 will the answer be 4/12

Right.

4/12