A company has 790 total employees. The company has three departments. There is a marketing department, an accounting department, and a human resources department. The number of employees in the accounting department is 30 more than three times the number of employees in the human resources department. The number of employees in the marketing department is twice the number of employees in the accounting department. How many employees are in each department?