Three vacancies were advertised in the factory: accountant, production manager and production worker. 6 accountants applied for the advertised positions, 4 for the production manager and 18 workers for the production work. How many ways can they fill all three jobs?