Yes it's
30000+8000+900+50+6
Slope intercept form is y=mx+b. since there is no b term, the y intercept is 0. since there is a 9 in the m term, your slope will be nine. based on those two things, you need a point at (0,0) and (1,9). on the other end, your point will be (-1,-9). then draw a straight line through. hope this helps :)
1/2 for red, 1/4 for blue, or if you are speaking of both together it is 3/4
S = p/(q +p -pq)
q +p -pq = p/s
q -pq = p/s - p
q(1-p) = p/s - p
q = (p/s - p) / (1-p)