A man wants to enclose a rectangular garden adjacent to a river. The length of the rectangle is two times the width. How many linear feet of the fence must he buy if he does not need fencing along the river and the perimeter of the rectangle is 240 feet?