AB = 24
BC = 45
AC = 51
cos C = adjacent / hypotenuse
cos C = BC / AC
cos C = 45/51
Sorry a bit messy, with a ratio of 2:5:1, that means 5 would be the longest and your longest piece is 125, diving 125 by 5 gets you 25 cm, this is also your shortest piece since 1x25=25
Alright, the equation of the graph is C. y= 0.5x +6