Here's a hint. The space RP^1 can be identified with the set of all lines through the origin in R^2. So the natural surjection would correspond to the map that sends a line in R^2 to the line through the origin that has the same gradient. Now you have to describe that map explicitly in terms of what it does on charts.