Working on this for a couple of hours, any help?

Input -output matrix

F S C

F .1 0 .2

S .2 .1 .4

C 0 0 .1

F= Food
S=Shelter
C=Clothing

x=(I-A)^-1(D)

1)What should the total production of the three industries be to generate a $900,000 surplus each?

I gotthe following for 1) F=1,224,000 S=1,719,000 and C=999,000. Not sure though

2) In another year, no shelter related products can leave the community, but the community continues to meet the goal of $900,000 of food and clothing. What should the total production be?