An amount of money is shared among P,Q and R such that for every 3P…