It's curious that you use the word "row" to mean "column" and "point" to mean "row"...
Please tell us if the following rephrasing is correct. You have two sequences of numbers: and . Also, there is a number . Let , , , . Also, let and . Do you need to find , or in the end?
If so, let and . Then you have two equations:
with two unknowns and , so the equations can be solved.