Let us consider that the system will move to the left.
The free body diagram of the system has been drawn below:

From the above diagram, it can be the summation of the forces acting on both the masses is equal to zero in each direction.
The equation of the summation of the forces acting on the bigger block is expressed as:
Here, T is the tension acting on the blocks, m is the mass of the bigger block, is the angle made by the smaller block with the horizontal and a is the acceleration of the blocks.
The equation of the summation of the forces acting on the smaller block is expressed as:
Here, T is the tension acting on the blocks, m is the mass of the smaller block, is the angle made by the bigger block with the horizontal and a is the acceleration of the blocks.
Equating the equation (i) and (ii) to get the value of the acceleration on the blocks
From the above equation, it is evident that the acceleration is positive. Hence, the system will move in the left direction.
Thus, the system will move in the left direction when the blocks are released from rest.