The algebraic representation can be as follows:
Let the cost of 1 kg of apples be x and that of 1 kg be y
x70605040y=160−2x20406080
x65554535y=150−2x20406080
We can see that the lines do not intersect anywhere, i.e. they are parallel. Hence we can not arrive at a solution.