from points coordinates to equation



is it possibile to get for example: x+y=6 giving two points coordinates? like (6,0) and (0,6) ?