Let cost price(C.P). of 1 pen = 1 R.s
C.P of 2 pens be = 2 Rs.
Selling price of 8 pen = 2 Rs
selling price of 1 pen = 2/8 Rs
loss = 2/8 = 0.25
loss % =(loss/ C.P) x 100
= (0.25/1) x 100
=25 %
second method
Let, cost price of each pen=x
Selling price of each pen=y
Loss=8x-8y
2x=8x-8y
2/8=(x-y)/x
2/8*100=(x-y)/x*100
25%=loss percent