The graph shows the relationship between the volume of a rectangular prism and the volume of a square pyramid with an identical
base and height. A coordinate plane showing Prism versus Pyramid. The x-axis shows Pyramid Volume in cubic units and the y-axis shows Prism Volume in cubic units. The line starts at (0, 0) and passes through (1, 3), (2, 6) and (3, 9).
Let's assume John gets p for each day so his total is 4p. He spends half of that on gas, (4p)/2 = 2p. He has 2p left. Now subtract 5 from 2p for the coffee, and there is 35 left. So 2p - 5 = 35. Right? Now you can solve for p, by simplifying that equation.