a & b started a partnership business . a ' s investment was thrice the investment of b and the period of his investment was two times the period of investments of b . if b received rs 7000 as profit , what is their total profit ?