Solution
For this case we can start with the following:
5x +2 = 8x -25
solving for x we got:
25+2 = 8x -5x
27 = 3x
x= 9
Then we can do the following equation:
360 = 180 + 5x -2 + 8x -25 + 2y
And then we can solve for y:
360= 180+ 94 + 2y
86 = 2y
y = 43