Ali ant Baba are in partnership sharing profits and losses if the ratio of 3…