In winter, the price of apples suddenly went up by $0.75 per pound. Sam bought 3 pounds of apples at the new price for a total of $5.88. Write an equation to represent the cost of the apples in terms of the original price per pound, p, and find the value of p.