A says to B ,"give me rupees 900 and I shall be twice as Rich As You".B replied "if you give me rupees hundred, I shall be thrice as rich as you". How much money has each?