Assuming the pulley and connecting cord are of negligible mass,

The magnitude of net force on the hanging mass is $ma = mg-T$, where T is tension in the cord

The magnitude of net force on the incline mass is $ma = T - mg(\sin{\theta} + \mu_k \cos{\theta})$, where $\theta = 30^\circ$

Summing the two equations term for term eliminates the unknown force of tension, $T$, and yields a single equation which can solved for the magnitude of acceleration for both masses.

Once you have acceleration (which is uniform for both masses), you can determine final velocity from the kinematics equation $v_f^2 = v_0^2 + 2a \Delta x$