This is more of an algebra problem than a geometrical one. The ratio given shows that the number of doctors can be written in terms of the number of nurses (or vice versa). Put that factor together with the nurse value to equal the total value, and solve.
D + N = 77 ;
N = 63, D = 14