For similar triangles, the side lengths are proportional. So, you can write a proportion relating the two pairs of vertical and horizontal side lengths. For the line y = 2x, a triangle can be drawn 2 units up and 1 unit right from the origin.