At the farmer's market, a bag of apples and 3 cartons of strawberries cost $18 total. If a bag of apples costs 50% more than a carton of strawberries, how much does a bag of apples cost?