Write the equation that goes along with the word problem. After you have written all four equations, solve them.