Let c be the cost of the cake and h the cost of the ham per pound. Then we have the following expression:

since we know that the cake cost 15, then c=15, so the expression would be:

therefore, we solve for h to find the equation tha represents the cost of the ham:

finally, we have that the cost of the ham per pound is $2