We know that the line passes through the origin, which means that the coordinates of the point on the line are (0,0). We also know that the line has a slope of 2. Therefore, we can use the point-slope form of the equation of a line to find its equation:
y - y1 = m(x - x1)
where m is the slope and (x1, y1) is a point on the line. Plugging in the values we know, we get:
y - 0 = 2(x - 0)
which simplifies to:
y = 2x
Thus, the equation of the line containing the origin and with a slope of 2 is y = 2x.