For the following word problems write a system of equations