The origin is a corner of a square and two of its sides are $y+2x=0$ and $y+2x=3$. Find the equation of other sides.
My Attempt: Let $OA$ and $CB$ be the sides of the square $OABC$ with equations $y+2x=0$ and $y+2x=3$. The equation of line $OC$ perpendicular to $OA$ is $$2x-y+k=0$$ Above equation passes through $O(0,0)$. Then $$2.0-0+k=0$$ $$k=0$$ So, $2x-y=0$ is the required equation.
You've got the equation of line $OC$ wrong. It should be $$2y - x + k = 0$$ This is using the fact that the product of slopes of perpendicular lines is $-1$.