Maya spent $192 to carpet a square room in her house. The carpet costs $3 per square foot. What is the length of one side of the room?