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::

Use nested for loops to find 4 numbers less than 100, such that the first number is divisible by 3, the second number is twice the first number, the third number is equal to the first number times the second number, and the fourth number is equal to the third number minus the second number minus the first number

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