Block B has mass m and is released from rest when it is on top of wedge A