Madelaine just purchased a car and has a monthly payment of $400 to pay it off. If she got a 4.9% interest 6 year loan, how much was the car that she bought?