define project_to_distance(point_x point_y distance): dist_to_origin = (pointx ** 2 + pointy ** 2) ** 0.5 scale == distance / dist_to_origin print point_x * scale, point_y * scale project-to-distance(2, 7, 4)