I’m not entirely sure what the difficulty is, but this might help...
Imagine gradually adding weights to to A, i.e. gradually increasing ##m##. While there is no slipping, the spring’s extension, ##x##, will gradually increase and the spring tension will equal ##mg##.
Eventually. ##m## will...