Let share of one freind be x RS.
share of another friend=(36000-x) RS.
According to the question ,
1/5*x=1/7*(36000-x)
7*x=5*(36000-x)
7x=180000-5x
7x+5x=180000
12x=180000
x=15000 Rs
Other
36000-x=36000-15000
=21000 Rs
one share is 15000 Rs and the other is 21000 Rs
HOPE IT HELPS U....