Let the cost of one pencil is Rs x and the cost of one pen is Rs y.
Given that together cost of 5 pencils and 7 pens is Rs 195.
Therefore, 5x+ 7y = 195. … (1)
And together cost of 7 pencils and 5 pens is Rs 153.
Therefore, 7x + 5y = 153. … (2)
Now, multiplying equation (1) by 7,
we get 35x + 49 y = 1365. … (3)
Now, multiplying equation (2) by 5, we get
35x + 25 y = 765. … (4)
Now, subtracting equation (4) from equation (3), we get
(35x + 49y) – (35x + 25y) = 1365 – 765
⇒ 24y = 600
⇒ y = \(\frac{600}{24}\) = 25.
Now, putting y = 25, in equation (1), we get
5x+ 175 = 195
⇒ 5x = 195 – 175 = 20
⇒ x = \(\frac{20}{5}\) = 4.
Hence, the cost of one pencil is RS 4 and the cost of one pen is Rs 25.