Answer: Total cost of 1 book and 2 pens = Rs 20
Let the cost of a book be Rs x and the cost of a pen be Rs y.
\(5x + 7y = 79\) .....(i)
\(7x + 5y = 77\) .....(ii)
Multiplying (i) by 5: \(25x + 35y = 395\) .....(iii)
Multiplying (ii) by 7: \(49x + 35y = 539\) .....(iv)
Subtracting (iii) from (iv):
\(49x - 25x = 539 - 395\)
\(24x = 144\)
\(x = \frac{144}{24} = 6\)
Putting \(x = 6\) in (i):
\(5 \times 6 + 7y = 79\)
\(7y = 79 - 30 = 49\)
\(y = \frac{49}{7} = 7\)
So a book costs Rs 6 and a pen costs Rs 7.
Check in (ii): \(7 \times 6 + 5 \times 7 = 42 + 35 = 77\) ✓
Cost of 1 book and 2 pens = \(6 + 2 \times 7 = 6 + 14 = \) Rs 20