Marcus saved $400 more than Joshua. After Joshua had given 1/5 of his savings to Marcus, Marcus had $480 more than Joshua. How much did Joshua save at first?