The expression described is the following:
[tex]3x+4=x+18[/tex]Assuming that each time "a number" is mentioned is referring to the same number. If they refer to different numbers, then the expression takes the form:
[tex]3x+4=y+18[/tex]Here x & y represent each a different number.