magnitude of acceleration a smooth incline is

basic kinematics equation ...

let point P be , and up the incline be the (+) direction.

motion of particle S up the incline ...

motion of particle T down the incline ...

solve the system for , the position relative to point P where the collision occurs.