Can you share your code here Sreenesh?
Maybe the problem be clearer with a code for review. You know how to share your code link right? well, just in case you didn't know 👇
I can give u a example such as if total number of items are purchased is 15 (15 items are purchased ) and total amount paid for 15 items is 300(300 was paid for 15 items) and profit gained by seller by selling those 15 items for 300 is 50
Now create a program to find the individual item price