You didn't show any work when (a) and (b) are extremely easy--for (a), the amount repaid after n months is just $500*n. You'll have to show some work representing a serious try at the question before I discuss the remaining parts.