Let the cost of one notebook be x. So, the cost of one pen is x − 5.
So, cost of 5 notebooks = 5x
Cost of 4 pens = 4(x − 5) = 4x − 20
Total cost = Rs 88
⇒ 4x − 20 + 5x = 88
⇒ 9x = 108
⇒ x = 12
∴ Cost of one notebook = x = Rs 12
and the cost of one pen = x − 5 = 12 − 5 = Rs 7