"The formula" is
I = Prt . . . . where I is the interest earned, P is the principal amount, r is the rate, and t is the time period
Andrea wants ...
... 2800 = P×0.04×3.5
... 2800/0.14 = P = 20,000 . . . . . divide by the coefficient of P
Andrea should deposit $20,000 to earn $2800 after 3.5 years.