Assuming one electrician-day is the same as another, the total job is ...
... (18 electricians)×(35 days) = 630 electrician·days
When that work is split among 28 electricians, it can be expected to take ...
... (630 electrician·days)/(28 electricians) = 22.5 days