Use the method of separating the variables to find the general solution of the equation

dy/dx - 2xy = 0

Could somebody please explain this method of separating variables because i have never been taught it (taught different syllabus). Only 4 mark question so guessing its nothing difficult.