I'm sure you understand that I shall not solve your class exercise for you.
Therefore just some hints:
Color-filter (extract) the reddish graph line and determine its inclination.*
Color-filter (extract) the black coordinate lines.*
Determine the intersection points of the graph line with the coordinates.
*Color-thresholding may be a possible approach.