First of all one moves up and the other moves down. As Q is heavier, Q goes up and P goes down. First let's find the acceleration of the system.
For P:
F=ma
T-g=1*a
T-g=a
For Q:
2g-T=2a
Add both equations:
2g-g=3a
g/3=a
Now let's find where Q and P are when t=0.5
As released from rest, u=0
v=u+at
v=g/3*0.5
v=1.633 m/s.
at this time Q is s=ut+1/2at^2
Q has travelled: 1/2*g/3*0.5^2
=0.40833 metres down, therefore P is 1.5+0.40833=1.9083 metres up (as it goes up when Q goes down).
Now it slows down. So, v=u+at
v=0
u=1.633
0=1.633-9.8t
t=0.1666 seconds to go up to when it stops.
therefore in these 0.166 seconds, it has travelled:s=1.663(0.166)-0.5*9.8*0.166^2
s=0.1361 metres, and so now is 1.9083+0.1361=2.044metres up.
At this instant:
u=0
v=?
a=9.8
so time taken to get down =
s=ut+0.5at^2
2.044=0.5*9.8*t^2
Rearrange and solve to get t=0.646 seconds to get down. But don't forget the time it took to get to 2.044 metres up so 0.646+0.166=
0.813 seconds
I hope i didnt make a mistake.