There should be more information than this? what are the two -5 and 5 doing? are they coordinates?
All you have to do is do the distributive property. So, for the first one you would do 5 times x which equals 5x and then you would do 5 times 4 which equals twenty. All you are left with is the addition sign. Your full equation now would be 5x+20
Blue: 5/20, 0.25%, 0.25
Red : 8/20 0.4%, 0.4
Green: 7/20, 0.35%, 0.35