x lei |_____|_____|_____|______|
\--------/=>1/4...una fusta
|__ |__ |__ |__ | __| __|=>rest
\--------------/=>3/6...3 carti
|__ |__ |__ |=> rest
\----/=>1/3...un pix
|_____ |=>rest
\---------/=>16 lei
16:2=8 lei 1 pix
8*3=24 lei 3 carti
24*2+16=64 lei in total
6:4=16 lei o fusta
64:4=16 (fusta)
64-16=48 lei rest
48:6=8 lei (1/6)
8*3=24 lei (3 carti)
24:3=8 lei (un pix)
8*2=16 lei ramasi
R=>A=64 lei in total