If the barge carries the maximum busses you will have a horizontal line at y = 8 ( Shade Down )
Wait, we're not finished with the constraints yet, you should have a box in the middle of your graph that is shaded with the corner points being (8,3),(24,3),(8,8) and (24,8)
Now the last constraint, here you will need to find and plot two points, and use your slope formula
to find your equation. if the barge carries no cars, then it can carry 8 buses, so your first point on your line is going to be (0,8)
Now this part is tricky, and we're going to go outside of the contraints to find out line. If the barge were to carry only 1 bus, we know the barge would fit 21 cars. So the next point of your line is ( 21, 1 )
Use these two points (0,8) & (21,1) to find the equation of your last constraint which will be
and graph this contraint on your paper, shading down.
Now here is the easy part, move around the outside edge of your figure that is shaded, and get all the "Corner Points" these are the only options you have for a maximum profit.
Using these corner points, plug them into your profit equation which is...
which ever set of points gives you the largest P value will be your answer for the problem, and tell you how many cars and how many buses should be transported in order to get the most money.