Trey invested in a savings bond for 3 years and was paid simple interest at an annual rate of 2%. The total interest that he earned was $240 . How much did he invest?