Distinguish where an object is lying from the surface where you put another object. Use dative for an existing position and accusative for the destination.
der Tisch means table; its plural is Tische.
die Tasche means a bag for carrying things here; the plural is Taschen. It can also mean a pocket in other contexts, but this task is about a separate bag. Ich habe eine Tasche introduces that object.
liegen means to lie or be in a horizontal position here. Die Tasche liegt auf dem Tisch describes a bag already lying flat on the table. Das Buch liegt auf der Tasche gives another existing position, on top of the bag. Use auf with dative for the surface where an object is: masculine dem Tisch, feminine der Tasche. Die Tasche liegt auf den Tisch has the wrong case for this existing position. With one bag or book, use the prepared singular ending in liegt; you do not add a pronoun to the noun subject.
stellen means to put an object in an upright position. Ich stelle ein Paket auf den Tisch makes the table the destination of the placement. With a firm bag as a support, Ich stelle ein Paket auf die Tasche uses feminine accusative die Tasche. Use auf with accusative for the destination surface, independently of the object's own case. For putting it onto the table, auf dem Tisch would instead describe where the action happens. stellen does not mean laying something flat; do not treat liegen as its action verb. Use the known regular forms ich stelle and wir stellen.