The algebraic representation can be as follows:
Let the cost of 1kg of apples be x and that of 1kg be y
2x + y = 160
4x + 2y = 300 ⇒ 2x + y = 150
The situation can be represented graphically by plotting these two equations.
2x + y = 160 ⇒ y = 160 - 2x
2x + y = 150 ⇒ y = 150 - 2x
We can see that the lines do not intersect anywhere, i.e. they are parallel. Hence we cannot arrive at a solution.