The numbers are "x" and "y";
We can suggest the following system of equations:
x/y=2/7
x+y=-36
We solve this system of equation by substitution method.
x/y=2/7 ⇒7x=2y ⇒ x=2y/7
(2y/7)+y=-36
2y+7y=-252
9y=-252
y=-252/9
y=-28
x+y=-36
x-28=-36
x=-36+28
x=-8
The numbers are -8 and -28.