The equation R=30A-50 represents the revenue R (in dollars) you make by spending A dollars on advertising. Your revenue totaled $160. How much did you spend on advertising?