I believe you mean 1/18 at the end. Letting R be rate of 7 hour worker and r the rate of the 4 hour worker, you have the simultaneous equations:
7R + 4r = 5/9 and 4R + 4r = 1-5/9-1/18 = 7/18
If you subtract the equations as they are you get 3R = 5/9 - 7/18 so you can find R in fractions of Job/hour and use either equation to solve for r.