Both graphs A and B are linear. In both graphs, the y value is going up at a constant rate in comparison to their x values. For example, in graph A every time the x value is increased by 1 the y value is increased by 2 values showing that they have the same gradient. For a graph to be linear it must have a constant rate of increase or decrease.