Gregory R. answered 09/08/19
Software and Database Development, Technical Interview Preparation
Let's read the problem carefully:
it says that one side of the rectangular room (let's call it b) is twice as long as the other (let's call it a), which in mathematical terms would be b = 2*a
It also says that the perimeter of the room is 48 meters, which means that (a + b)*2 = 48 => a + 2*a = 48/2 =>
3*a = 24 => a = 8, b = 16