var max_value = (from PointOnLine item in arrayList
You've had several suggestions on how to approach your problem. Be a programmer and figure it out. Nobody here is going to sit down and write code to figure it out for you. We simply don't have the time.
The suggestion to use List instead of ArrayList will go a long way to helping you solve your issue.