Answer:Sam has 29 movies.
Sam has 11 TV shows.
Explanation:
Let x represent the number of movies that Sam has.
Let y represent the number of TV shows that Sam has.
Sam has a total of 40 dvds, movies and tv shows. This means that
x + y = 40 - - - - - - - - - - -1
The number of movies is 4 less then 3 times the number of tv shows. This means that
x = 3y - 4 - - - - - - - - - - -2
Substituting equation 2 into equation 1, it becomes
3y - 4 + y = 40
4y - 4 = 40
4y = 40 + 4 = 44
y = 44/4 = 11
x = 3y - 4 = 3 × 11 - 4
x = 33 - 4
x = 29