Given your formula, you can set up two equations, one for your amount at two years (10,000) and one for your amount at 5 years (12,000):
y = y0ert
12,000 = y0e5r
10,000 = y0e2r
Now you have two equations and two unknowns (r and y0), so you can solve for both.
Part C is similar, but now y0 = 10,000 and y(t=3) = 12,000.