Given,
CP of p apples = q
∴ CP of 1 apple = q/p
and SP of q apples = p
∴ SP of 1 apple = p/q
Given, p < q
∴ Loss = q/p - p/q = (q2 - p2) / pq
And Loss% = (Loss/CP) x 100
= {(q2 - p2)/pq} /(q/p)] x 100
= (q2 - p2)/q2 x 100
Therefore, when p < q , then the person had a loos which is given by
100 x (q2 - p2/q2)% loss.