Theory
If the ratio of quantity x to quantity y is 2:3, every 2 units of x correspond to 3 units of y. The relationship stays true when both quantities are scaled by the same factor.
To express y in terms of x, divide the y part by the x part: y = (3/2)x. This is a linear function: y is a constant multiple of x.
To express x in terms of y, reverse the multiplier: x = (2/3)y. Do not use y = 2x/3; that would reverse the ratio.
The graph of y = (3/2)x is a straight line through the origin. Points (2, 3) and (4, 6) satisfy the rule and the original ratio.
The ratio x:y = 2:3 is not the same as x/(x + y) = 2/3. The fraction of the total represented by x is 2/5. Keep the quantities named in the question.