Let the cost of a bucket be Rsx and that of a mug be Rsy. We have two equations:
8x+5y=92,(1)
5x+8y=77.(2)
Multiply the equation (1) by 8 and the equation (2) by 5, you get
64x+40y=736
25x+40y=385.
Subtracting the second from the first, we get 39x=351. Thus we obtain x=9.
Putting this in the equation (1), we get
5y=92−8x=92−8(9)=92−72=20.
We obtain y=4
Thus the cost of a bucket is Rs9 and that of a mug is Rs4.
Now the cost of 3 buckets is 3×9=27 rupees and that of 2 mugs is 2×4=8 rupees. The total cost is Rs35.