The average output of n machines is k units per day. If one of the machines is excluded, whose output is 780 units per day, the average output will decrease by 30 units. Instead, if one dead machine is included, the average output will decrease by 90 units. What is the total output of n machines?
1
4020
2
3900
3
3640
4
3780