Edgar borrowed a total of $10,000 from three sources: the bank, his mom, and a close friend. After one year, he paid a total of $624 in simple interest toward the three loans. The bank charged an interest rate of 7% per year, his mom charged 5%, and the friend charged 6%. The amount he borrowed from his mom exceeded the amount he borrowed from his friend by $200. What amount did Edgar borrow from the bank?