Maria and Mark were saving money for their table and house at a ratio of 4:7. Maria had 186 dollars less than Mark. How much money did they save together?