Solve By Exhaustion, Assignment

Your task is to solve the following problem:   Find 4 numbers such that:  The second is 4 more than twice the first.  The third number is equal to the first number plus the second.  The fourth number minus the third number equals the first number.  The second number plus the third number is 4 more than the first number plus the fourth number.   Use a variation of the following 2 programs.   Run the program.  Check to see if the answer works.   Print a listing of your working program, or get help.

Here are 2 sample programs::

Find 4 numbers such that:  The first number is divisible by 3.  The second number is twice the first,  the third number is equal to the first times the second,  and the 4th number is equal to the third number minus the sum of the first 2 numbers.

Example 1

Use a nested for loops to find 4 numbers such that:  The sum of all 4 numbers is equal to 145,  twice the first number is 4 more than the second number,  the third number is equal to the first numnber plus the second number, and the 4th number is equal to 3 times the first.

Example 2