let the length of the halls be 'a' and 'a+1' m respectively and height of the halls be 'h' m.
Area of 4 walls of first square hall
(A1)=4×a×hm2Given, cost of painting is Rs. 5 per sq.m
⇒ cost of painting 4 walls of the first square hall
=A1×5=20×a×h.
Given that this cost of painting = Rs. 6000
20×a×h=6000...........(1)
Similarly,Area of 4 walls of second square hall
(A2)=4×(a+1)×hm2⇒ cost of painting 4 walls of the second square hall
=A2×5=4×(a+1)×h×5 =Rs.20+(a+1)×hGiven that this cost of painting = Rs. 6100
20×(a+1)×h=6100............(2)
Dividing (2) with (1), we get
=a=60Substituting this value in equation (1), we get
20×60×h=6000h=5m.
So, the height of the two walls is 5 m.