using graphs to relate two quantities