(1)
S=6x+6+2y+12
=6x+2y+18
(2)
6x-2y=21m^2
6x+2y+18=30y
解之得
X=4
Y=1.5
S=24+3+18
=45M^2
Q=45*80
=3600元