can some one help me set this up into eqautions to be solved please.

One number is 6 more than another. If the sum of the smaller number and 3 times the larger number is 34, find the two numbers.

x=10
y=4

Those are the answers but how do you get to them.

3 liters= mL

Wouldn't this work?

x = y+6

x + 3(y+6) = 34

To solve this problem, we can set up two equations based on the given information and then solve them simultaneously.

Let's assign variables to the two numbers:
Let x be the larger number.
Let y be the smaller number.

From the given information, we can form the following equations:

Equation 1: "One number is 6 more than another."
x = y + 6

Equation 2: "If the sum of the smaller number and 3 times the larger number is 34."
y + 3x = 34

Now, we have a system of two equations. To solve these equations, we can use substitution or elimination method.

Let's use substitution method. We substitute the value of x from Equation 1 into Equation 2:

y + 3(y + 6) = 34
y + 3y + 18 = 34
4y + 18 = 34
4y = 34 - 18
4y = 16
y = 16/4
y = 4

Now, we substitute the value of y back into Equation 1 to find x:

x = y + 6
x = 4 + 6
x = 10

Therefore, the two numbers are x = 10 and y = 4.