Let the larger number be x.
The smaller number be y.
According to the question,
[tex]x=5y+18\ldots.(1)[/tex][tex]3x+4y=16\ldots.(2)\text{ }[/tex]Putting x from (1) in (2) we have,
[tex]3(5y+18)+4y=16[/tex][tex]19y+54=16[/tex][tex]19y=-38[/tex][tex]y=-2[/tex]Putting y in (1) we have,
[tex]x=5\times(-2)+18=8[/tex]The numbers are 8,-2.