Let;

The number of TV shows = x

The number of movies = y

It is given that;

The number of movies is 4 less than 3 times the number of television shows.

`y = 3x-4`

If you rearrange this;

`y-3x = -4` -----(1)

Also we know that;

`x+y = 40 ` ----(2)

(2)-(1)

`4x = 44`

` x = 11`

From (2);

`y = 40-11 = 29`

*The number of TV shows = 11*

*The number of movies = 29*