Jessica's bank contains 18 quarters & dimes, of which q are quarters. Find the total value of the coins in dollars.