Sarah had (x) dollars. Rachel had four times as much as Sarah. Addie had 10 dollars less than Sarah. How much money did they have altogether?