Suppose that,
The two parts is x and y.
So,
According to question,
x+y=15 …… (1)
Then,
1x+1y=310
⇒x+yxy=310
⇒10x+10y=3xy
⇒10(x+y)=3xy
⇒10×15=3xy
⇒xy=10×5
⇒xy=50
⇒y=50x......(2)
Put in (1) and we get,
x+50x=15
⇒x2+50=15x
⇒x2−15x+50=0
⇒x2−10x−5x+50=0
⇒x(x−10)−5(x−10)=0
⇒(x−10)(x−5)=0
⇒x=5,10
If put x=5,soy=10
If putx=10so,y=5