Robert earns $512 less than noel, john earns times as much as robert. if their total salaries sum to 47,645.25, how much is roberts salary?

n + (n - 512) + 3(n - 512) = 47645.25