a rectangle has a length of A cm and a width which is half of the length. Given that the rectangle as a perimeter of 240 cm, write down an expression in terms of A for the perimeter of the rectangle, and find the length of the rectangle.