Newton Laws

For the setting in the figure find the tension in each rope.