firms:
max Profit A => Pg=2Px =>profitA=0, Sga=2*Dxa
max Profit B => Pb=3Px =>profiB=0, Sbb=3*Dxb
househould:
max ua s.t. Pg*Dga+Pb*Dba=Px*10+profitA =>Dga=0.4*Pg/(px*10), Dba=0.6*Pb/(px*10)
max ua s.t. Pg*Dgb+Pb*Dbb=Px*10+profitB=>Dgb=0.5*Pg/(px*10), Dbb=0.5*Pb/(px*10)
market clear:
Dxa+Dxb=20
Sga=Dga+Dgb
Sbb=Dba+Dbb
and you can normalize Px=1.