construction of this sentence here?


> この本がバカ売れすれば、遊んで暮らすだけの金が手に入るのに。

Can anyone breakdown this part 遊んで暮らすだけの金 and explain the sentence
construction ?




> XしてYする

Y-ing by X-ing.

遊んで暮らす means "To live while just doing nothing but playing"

> XするだけのY

Enough amount of Y to X.

So,

> 遊んで暮らすだけの金

means

> Enough amount of money to live by playing.

