@melissax,
I'm not really clear about the system---but
horizontal force--Fh=3kg*10m/s^2*0.4=12 nt
vertical force--Fv=5kg*10m/s^2=50 nt
Assumptions--The pully is frictionless and the string between the two weights is massless.
Total force F=50 nt-12 nt=38 nt
System mass M=3kg+5kg=8kg
From F=Ma
or a=F/M=38 nt/8kg = 4.75 m/s^2
now to determine velocity when the masses move 2m
s=1/2at^2 2m=1/2*4.75 m/s^2*t^2 so t=sqrt(2*8/4.75) sec
and as the system started at o then v=a*t
v=4.75*sqrt(16/4.75)=4*sqrt(4.75)=~8.72 m/s
BTW both masses have the same velocity.
Rap