Answer:
can exchange energy with its surroundings through heat and work transfer. In other words, work and heat are the forms that energy can be transferred across the system boundary.
One with greater mass (8kg)
I attached a free body diagram for a better understanding of this problem.
We start making summation of Moments in A,



Then we make a summation of Forces in Y,



At the end we calculate the angle with the sin.

