For friend...hair starts at 4 inches this is 'b' in y = mx + b
so for friend hair length = y = mx + 4 friend's hair grows 6.5 - 4 = 2.5 inches in 5 months = .5 inches/month
so t = mx + b becomes Hair length: y = .5 x +4 where x is months
Similarly for cousin 'b' = 7 and m = (9-7")/5months = .4 y = .4x + 7