Martin was going to the market to buy apples. The price for apples is $3.50 times the number of apples bought plus one-dollar tax. Write a polynomial function A that represents the price of apples in terms of n. If Martin bought 3^3 amount of apples. How much did the apples cost?