This kind of question has been asked on the forum before as well, but the doubts I have regarding it are not being resolved by the answers provided in those threads hence posting this as a new question.
The solution given in the book does as follows :- $1000*CP=800*SP$, where CP is the cost price of 1 gram and SP is the selling price of 1 gram from that the author did $SP/CP=1000/800$ which is 25% profit
My doubts :-
Why are we writing $1000*CP$ and not $800*CP$ to calculate his total cost. If he is selling 800 grams, shouldn't his cost also be measured for 800 grams only?
Secondly, even if I take that $1000*CP$ as given in the solution to be the total cost and $800*SP$ as the total selling price. In that case why are we equating these 2 things, since as per the question it is given that the shopkeeper claims that the total selling price is same as total cost price but at the same time we know that he is dishonest, so obviously they won't be equal.
I am really confused on these 2 statements
Let $c$ be the CP per gram.
The shopkeeper tells you that he sells at the rate of $c$ per gram (which is his cost price). You are buying $1000$g. So, you pay $1000c$, unaware of his dishonesty. However, in reality, he has just given you $800$g. He had bought this $800$g from a dealer for a cost of $800c$, but is now selling you the same thing at $1000c$. His profit becomes $200c$, hence profit per cent is $25\%$.
Coming to the method described in the question: In the solution given, SP is the net selling price for him per gram, if you consider his fraud. What does he do? Gets $1000CP$ from you, but since he has sold only $800$g, that's $800SP$ for him. So, both should be equal.
Answering your questions:
$1000CP$ is not his total cost. It's what you (the buyer) have paid. He has bought from a dealer at $CP$ per gram. He lies and tells he sells at the same rate. You become happy and buy $1000$g from him, not realizing he's only given you $800$g.
(I think you meant $800*SP$.) We are considering $SP$ to be the price he would've sold you the thing if he would have told the truth (that is, the price he would have sold if he used proper weights but wanted to maintain the same profit %). "so obviously they won't be equal" yes, $CP \neq SP$, however, $1000CP = 800SP$. This is because you give him $1000CP$, and that's $800SP$ for him (since only he knows that he's selling $800$g, and not $1000$g).