Maggie and Elizabeth are both cleaning their rooms. It takes Elizabeth three times as long as Maggie to clean her room. If all together they spent six hours cleaning their rooms, how long did it take each girl