==========================================================
Work Shown:
x = Ali's share
4x = Pip's share, because it is four times bigger due to the ratio 4:1
x+4x = 5x = total amount of money = 785
5x = 785
x = 785/5
x = 157 dollars is Ali's share
4x = 4*157 = 628 dollars is Pip's share
Note that 157+628 = 785 to help confirm the answer.