Arturo O. answered 01/16/20
Experienced Physics Teacher for Physics Tutoring
A simple ratio formula will not work. You will need a relation of the type
y = mx + b
You have 2 points (x,y):
(122,0)
(0,1)
Find the slope.
m = (1 - 0) / (0 - 122) = -1/122
y = (-1/122)x + b
Get b from either point. Using (0,1),
1 = (-1/122)(0) + b
b = 1
y = (-1/122)x + 1
Test this answer. When x=0, it gives y=1 (good). When x=122, it gives y=0 (good).