We have:
The sum of two numbers is 46: x + y = 46
The sum of 6 times the larger and 4 times the smaller is 238: 6x + 4y = 238
Where
x = the larger number
y = the smaller number
Solve the system of equations:

So:

Substitute y in the second equation:

Simplify and solve for x:

Then for y:

Answer:
larger number: 27
smaller number: 19