You may have substituted correctly to obtain , but then subtracted 5,000 from the left side, instead of dividing by 5,000.