Okay, let's break this down step-by-step:
* The business has $40,000 total to spend on advertising 
* Some will go to TV (x), some to radio (y), and some to newspapers (z) 
* 3 times as much will go to TV as radio, so x = 3y 
* They will spend $8,000 less on radio than newspapers, so y = z - 8,000
* We have: 
x = 3y (1) 
y = z - 8,000 (2) 
x + y + z = 40,000 (3) 
To solve this using matrix inversion:
1) Turn the equations into a matrix: 
3 1 0 y 
1 -1 1 z 
1 1 1 x 
2 0 40,000
2) Invert the matrix: 
0.3333 0.3333 0.3333 
-0.25 0.75 0 
0.125 0.125 0.750 
3) Plug in the values from (2) and (3): 
y = 0.3333(z - 8,000) 
x = 0.125z + 0.125(40,000 - z) 
4) Solve for z, the amount for newspapers. We get: 
z = 40,000 * (0.75) = 30,000
5) Plug z = 30,000 back into the other equations: 
x = 0.125 * 30,000 + 0.125 * 10,000 = 12,000 
y = 0.3333 * (30,000 - 8,000) = 8,000 
z = 30,000
So in total: 
TV (x) = $12,000 
Radio (y) = $8,000 
Newspapers (z) = $30,000
Does this make sense? Let me know if you have any other questions!