If the circumference of a rectangle is 12cm and its length is x, then the analytic expression of the function of Y with respect to X is? What is the value range of the independent variable x?

If the circumference of a rectangle is 12cm and its length is x, then the analytic expression of the function of Y with respect to X is? What is the value range of the independent variable x?

2x+2y=12;x+y=6;y=6-x(0