Let the cost of 1 pencil = x
∴ Cost of 1 pen = (x + 5)
According to the question,
12(x + 5) + 5x = 111
⇒ 12x + 60 + 5x = 111
⇒ 17x = 111 - 60 = 51
⇒ x = 51/17 = 3
∴ Cost of 1 pencil = ₹ 3
Cost of 1 pen = ₹ 8
∴ Total Cost of 8 pens and 9 pencils
= (8 x 8 + 9 x 3)
= ₹(64 + 27) = ₹ 91