The correct option is B Total price Rs. 20
Let the cost of a book Rs x and the cost of a pen Rs y.
Then, the equations formed are :
5x+7y=79 ....(i)
7x+5y=77 .....(ii)
On adding (i) and (ii) , we get
12x+12y=156
⇒x+y=13 ....(iii)
On subtracting (i) from (ii) , we get
2x−2y=−2
⇒x−y=−1 ....(iv)
On adding (iii) and (iv) , we get
2x=12
⇒x=6
By putting x=6 in (iv), we get
6−y=−1
⇒y=7
cost of 1 book and 2 pens = x+2y=6+2(7)=Rs.20