The difference between the prices of two bikes is 22 dollars. The sum of prices is 328 dollars. How much does each bike cost?