It all depends on which values. In your specific example, lets assume that you have X in col(A) and Y in column(B), then the following is how you find X at Max Y:
sum(col(B));
col(A)[sum.imax]=;
You can see more about the LabTalk SUM function here:
http://www.originlab.com/doc/LabTalk/ref/Sum-obj
CP