Let denote the depth below the ocean surface and denotes the water pressure.
Let us take the coordinates
Given with as the initial coordinates.
The relationship is linear, since the growth of water pressure with depth increases at a constant rate.
The slope of a given straight line can be found by .
In this case,