How to find the interst rate on an investment of 3000 after four years received 4105.71. What is the interest rate

solve for r in

compound interest:
3000(1+r)^4 = 4105.71

simple interest:
3000(1+4r) = 4105.71