Example 1 :
Example : 2
For example 1 , simply neglect the spring and assume it to be a single rope and find tension in the rope that will be the reading of the spring balance
For example 2 I think you did it this way
This is for example 2
Thanks a lot for ur efforts.