The sides of a triangle are as follows. The second side of a triangle is twice the length of the first side. The third side of the triangle is half of the second side. If the perimeter of the triangle is 36 units, what is the measure of all the sides? Write and solve an equation.