Both the lines shown by above two equations have same slope = 3 i.e. the lines are parallel to each other i.e. they don't intersect each other hence the given system of linear equations has no solution .
The expression is (15+6) */* 3. This is because we add up all the costs to get the total, and divide the total by three because there are three friends splitting the cost.