Question: Merging two lists

If i have two lists L:=({1,2,5},{3,4,6},{1,2,3}) and G:=({2,1,3},{3,5,1},{1,5,2})

How would i write a procedure to put these two lists into one as {1,1,1,1,1,2,2,2,2,3,3,3,4,5,5,5,6} i now there is a method in maple help but it doesnt meet what i need.

Any help would be appreciated.

Please Wait...