The only data I have about a straight line is its slope and distance from origin.

I know that it's easy to use slope to obtain the angular coefficient m if I want line in the form y + mx +c.

Anyway, I still have no idea about how to find y-intercept c.

Do you know how I could do that?

Alternatively, do you know another way to get line's equation starting from slope and distance?

Thanks for help.