Question 1203163
The two points  (0,k) and (h, 2k);


Directly to formula of slope,
{{{m=(2k-k)/(h-0)}}}


{{{m=(2k-k)/h}}}

{{{highlight(m=k/h)}}}


Also using slope intercept form, {{{y=mx+c}}} and now having an expression found for slope m,
picking your first given point  (0,k),

{{{y=k=(k/h)*0+c}}}, which you could have jumpted through much more quickly;
{{{k=0+c}}}
{{{highlight(c=k)}}}



Understand, first given point (0,k) indicates that vertical axis intercept is k.
You would not really need to SOLVE for c.