Two blocks of masses is m and 2m are held in the equilibrium on a frictionless incline. In terms of m and x, find the magnitude of the tension t1 in the upper cord and the magnitude of the tension t2 in the lower cord connecting two blocks.