//Frictionless pulleys //refer fig. 17.8 (a) and (b) //consider combined FBD of the system N1=500 //N F1=0.2*500 //N N2=1000*cosd(30) //N F2=0.2*N2 //N //writing impulse momentum equation v=20.19 //m/sec printf("\nv=%.3f m/sec",v)