Answer:

Step-by-step explanation:
We can write the following system of equations:

Adding both equations together, we isolate
and get:

Plugging
in any of the equations, we can solve for
:

Verify that the solution pair
works 
Therefore, the two numbers are
.
Octagon has 8 sides so the sum of the angles of the octagon is 180(8-2)=180 (6)=1080 degrees