You can use those elastic-2D stress-strain relationships to solve this problem. You will need to assume the values of crushing strain, cross-sectional area and elastic modulii of both columns. You will assume same values so that you can compare the effect of confining stress.
following relation will be use: strain y = 1/E[stress (y) - Poisson's ratio . stress (x)]
For the case without confining stress, stress(x) is zero, and for the other case, it is hydro-static pressure at the base of column, which will also be expressed in terms of height of column.
As it is mentioned in earlier comment, you will express stress(y) as function of cross-sectional area and height of column.
crushing strain will need to be substituted for strain(y).