Im trying to remove 'b' which is '(b, 10)'. The code i have is:
remove(C, L1, L2).
remove(C, [C|N], N).
remove(C, [C|L1], [C|L2]) :- remove(C, L1, L2).
'C' represents a chest. 'L' represents a location. 'N' represents a number.
Im not sure if im heading in the right direction or if im just missing something little.