For the length L as a function of the number of folds x,

looks like it will work. Fold it once, the quilt will be 50m long. Fold it a second time, the quit will be 25m long. To find out how many folds it will take to fit the quilt into the cubby, set the L(x) equal to 1.

If the initial length is 128m, then the function would be

01