Let the two parts be x and (27-x).
According to the given condition,
1x+127−x=320⇒27−x+xx(27−x)=320⇒2727x−x2=320⇒27x−x2=180⇒x2−27x+180=0⇒x2−15x−12x+180=0x(x−15)−12(x−15)=0(x−12)(x−15)=0x=12 or 15When x=12,27−x=27−12=15When x=15,27−x=27−15=12
Hence, the required parts are 12 and 15.